com.azalient.api.b.parameters
Enum IEngine.EngineType
java.lang.Object
java.lang.Enum<IEngine.EngineType>
com.azalient.api.b.parameters.IEngine.EngineType
- All Implemented Interfaces:
- Serializable, Comparable<IEngine.EngineType>
- Enclosing interface:
- IEngine
public static enum IEngine.EngineType
- extends Enum<IEngine.EngineType>
An enumeration of standard engine types. This list can be supplemented with user-defined engines.
Petrol_CarUnder1400cc
public static final IEngine.EngineType Petrol_CarUnder1400cc
Petrol_Car1400_2000cc
public static final IEngine.EngineType Petrol_Car1400_2000cc
Petrol_CarOver2000cc
public static final IEngine.EngineType Petrol_CarOver2000cc
Diesel_CarUnder2000cc
public static final IEngine.EngineType Diesel_CarUnder2000cc
Diesel_CarOver2000cc
public static final IEngine.EngineType Diesel_CarOver2000cc
Petrol_LGV
public static final IEngine.EngineType Petrol_LGV
Diesel_LGV
public static final IEngine.EngineType Diesel_LGV
Diesel_RigidHGV
public static final IEngine.EngineType Diesel_RigidHGV
Diesel_ArticHGV
public static final IEngine.EngineType Diesel_ArticHGV
Diesel_Bus
public static final IEngine.EngineType Diesel_Bus
Petrol_Moped
public static final IEngine.EngineType Petrol_Moped
Petrol_BikeUnder250ccTwoStroke
public static final IEngine.EngineType Petrol_BikeUnder250ccTwoStroke
Petrol_BikeUnder250ccFourStroke
public static final IEngine.EngineType Petrol_BikeUnder250ccFourStroke
Petrol_Bike250_750ccFourStroke
public static final IEngine.EngineType Petrol_Bike250_750ccFourStroke
Petrol_BikeOver750ccFourStroke
public static final IEngine.EngineType Petrol_BikeOver750ccFourStroke
Petrol_Other
public static final IEngine.EngineType Petrol_Other
Diesel_Other
public static final IEngine.EngineType Diesel_Other
Electric
public static final IEngine.EngineType Electric
Hybrid
public static final IEngine.EngineType Hybrid
BicycleRoad
public static final IEngine.EngineType BicycleRoad
BicycleHybrid
public static final IEngine.EngineType BicycleHybrid
BicycleMountain
public static final IEngine.EngineType BicycleMountain
Lift
public static final IEngine.EngineType Lift
values
public static IEngine.EngineType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (IEngine.EngineType c : IEngine.EngineType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static IEngine.EngineType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
maxSpeed
public double maxSpeed()
maxAcceleration
public double maxAcceleration()
maxDeceleration
public double maxDeceleration()
zeroEmissions
public boolean zeroEmissions()