MATSIM
vehicles
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
22
import
org
.
matsim
.
utils
.
objectattributes
.
attributable
.
Attributable
;
23
import
org
.
matsim
.
utils
.
objectattributes
.
attributable
.
Attributes
;
24
import
org
.
matsim
.
utils
.
objectattributes
.
attributable
.
AttributesImpl
;
25
29
public
final
class
EngineInformation
implements
Attributable
{
30
// yyyy maybe these subtypes should be immutable?
31
32
private
Attributes
attributes
=
new
AttributesImpl
() ;
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
}
53
public
Attributes
getAttributes
(){
54
return
attributes
;
55
}
56
@Deprecated
57
public
enum
FuelType
{diesel,
gasoline
, electricity, biodiesel}
58
}
org.matsim.vehicles.EngineInformation.FuelType
Definition:
EngineInformation.java:57
org.matsim.utils.objectattributes.attributable.Attributable
Definition:
Attributable.java:27
org.matsim.vehicles.VehicleUtils
Definition:
VehicleUtils.java:41
org.matsim.vehicles.EngineInformation.setFuelType
EngineInformation setFuelType(FuelType fueltype)
Definition:
EngineInformation.java:44
org
org.matsim.vehicles.VehicleUtils.getFuelConsumption
static Double getFuelConsumption(VehicleType vehicleType)
Definition:
VehicleUtils.java:306
org.matsim.vehicles.EngineInformation.getAttributes
Attributes getAttributes()
Definition:
EngineInformation.java:53
org.matsim.vehicles.EngineInformation.FuelType.gasoline
gasoline
Definition:
EngineInformation.java:57
org.matsim.utils
org.matsim.utils.objectattributes
org.matsim.vehicles.EngineInformation.setFuelConsumption
EngineInformation setFuelConsumption(double literPerMeter)
Definition:
EngineInformation.java:49
org.matsim.vehicles.EngineInformation.getFuelType
FuelType getFuelType()
Definition:
EngineInformation.java:36
org.matsim.vehicles.EngineInformation
Definition:
EngineInformation.java:29
org.matsim.utils.objectattributes.attributable
Definition:
Attributable.java:22
org.matsim.utils.objectattributes.attributable.Attributes
Definition:
Attributes.java:29
org.matsim.vehicles.VehicleUtils.setFuelConsumption
static void setFuelConsumption(VehicleType vehicleType, double literPerMeter)
Definition:
VehicleUtils.java:314
org.matsim.utils.objectattributes.attributable.AttributesImpl
Definition:
AttributesImpl.java:31
org.matsim
org.matsim.vehicles.EngineInformation.attributes
Attributes attributes
Definition:
EngineInformation.java:32
org.matsim.vehicles.EngineInformation.getFuelConsumption
double getFuelConsumption()
Definition:
EngineInformation.java:40
Generated by
1.8.13