Codota Logo
EngineInformation.getFuelType
Code IndexAdd Codota to your IDE (free)

How to use
getFuelType
method
in
org.matsim.vehicles.EngineInformation

Best Java code snippets using org.matsim.vehicles.EngineInformation.getFuelType (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: matsim-org/matsim

private void writeTypes(BufferedWriter writer)throws IOException {
  writer.write("\t<vehicleTypes>\n");
  for(CarrierVehicleType type : vehicleTypes.getVehicleTypes().values()){
    writer.write("\t\t<vehicleType id=\"" + type.getId() + "\">\n");
    writer.write("\t\t\t<description>" + type.getDescription() + "</description>\n");
    EngineInformation engineInformation = type.getEngineInformation();
    if(engineInformation != null) writer.write("\t\t\t<engineInformation fuelType=\"" + engineInformation.getFuelType().toString() + "\" gasConsumption=\"" + engineInformation.getGasConsumption() + "\"/>\n");
    writer.write("\t\t\t<capacity>" + type.getCarrierVehicleCapacity() + "</capacity>\n");
    VehicleCostInformation vehicleCostInformation = type.getVehicleCostInformation();
    if(vehicleCostInformation == null) throw new IllegalStateException("vehicleCostInformation is missing.");
    writer.write("\t\t\t<costInformation fix=\"" + vehicleCostInformation.fix + "\" perMeter=\"" + vehicleCostInformation.perDistanceUnit + 
        "\" perSecond=\"" + vehicleCostInformation.perTimeUnit + "\"/>\n");
    writer.write("\t\t</vehicleType>\n");
  }
  writer.write("\t</vehicleTypes>\n\n");
}
origin: matsim-org/matsim

private void writeEngineInformation(EngineInformation ei) throws UncheckedIOException {
  this.writeStartTag(VehicleSchemaV1Names.ENGINEINFORMATION, null);
  this.writeStartTag(VehicleSchemaV1Names.FUELTYPE, null);
  this.writeContent(ei.getFuelType().toString(), false);
  this.writeEndTag(VehicleSchemaV1Names.FUELTYPE);
  atts.clear();
  atts.add(this.createTuple(VehicleSchemaV1Names.LITERPERMETER, Double.toString(ei.getGasConsumption())));
  this.writeStartTag(VehicleSchemaV1Names.GASCONSUMPTION, atts, true);
  this.writeEndTag(VehicleSchemaV1Names.ENGINEINFORMATION);
}
origin: matsim-org/matsim

assertEquals(23.23, vehType.getCapacity().getFreightCapacity().getVolume(), EPSILON);
assertNotNull(vehType.getEngineInformation());
assertEquals(EngineInformation.FuelType.diesel, vehType.getEngineInformation().getFuelType());
assertEquals(0.23, vehType.getEngineInformation().getGasConsumption(), EPSILON);
assertEquals(23.23, vehType.getAccessTime(), EPSILON);
org.matsim.vehiclesEngineInformationgetFuelType

Popular methods of EngineInformation

  • getGasConsumption

Popular in Java

  • Start an intent from android
  • getApplicationContext (Context)
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now