MATSIM
EngineInformation.java
Go to the documentation of this file.
1 /* *********************************************************************** *
2  * project: org.matsim.*
3  * *
4  * *********************************************************************** *
5  * *
6  * copyright : (C) 2008 by the members listed in the COPYING, *
7  * LICENSE and WARRANTY file. *
8  * email : info at matsim dot org *
9  * *
10  * *********************************************************************** *
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * See also COPYING, LICENSE and WARRANTY file *
17  * *
18  * *********************************************************************** */
19 
20 package org.matsim.vehicles;
21 
25 
29 public final class EngineInformation implements Attributable {
30  // yyyy maybe these subtypes should be immutable?
31 
33 
34  /* package-private */ EngineInformation() { }
35  @Deprecated
36  public FuelType getFuelType() {
37  return VehicleUtils.getFuelType( this ) ;
38  }
39  @Deprecated
40  public double getFuelConsumption() {
41  return VehicleUtils.getFuelConsumption(this);
42  }
43  @Deprecated
44  public EngineInformation setFuelType( FuelType fueltype ) {
45  VehicleUtils.setFuelType(this, fueltype);
46  return this ;
47  }
48  @Deprecated
49  public EngineInformation setFuelConsumption( double literPerMeter ) {
50  VehicleUtils.setFuelConsumption(this, literPerMeter);
51  return this ;
52  }
54  return attributes ;
55  }
56  @Deprecated
57  public enum FuelType {diesel, gasoline, electricity, biodiesel}
58 }
EngineInformation setFuelType(FuelType fueltype)
static Double getFuelConsumption(VehicleType vehicleType)
EngineInformation setFuelConsumption(double literPerMeter)
static void setFuelConsumption(VehicleType vehicleType, double literPerMeter)