com.azalient.api.b.parameters
Enum IEngine.EngineType

java.lang.Object
  extended by java.lang.Enum<IEngine.EngineType>
      extended by 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.


Enum Constant Summary
BicycleHybrid
           
BicycleMountain
           
BicycleRoad
           
Diesel_ArticHGV
           
Diesel_Bus
           
Diesel_CarOver2000cc
           
Diesel_CarUnder2000cc
           
Diesel_LGV
           
Diesel_Other
           
Diesel_RigidHGV
           
Electric
           
Hybrid
           
Lift
           
Petrol_Bike250_750ccFourStroke
           
Petrol_BikeOver750ccFourStroke
           
Petrol_BikeUnder250ccFourStroke
           
Petrol_BikeUnder250ccTwoStroke
           
Petrol_Car1400_2000cc
           
Petrol_CarOver2000cc
           
Petrol_CarUnder1400cc
           
Petrol_LGV
           
Petrol_Moped
           
Petrol_Other
           
 
Method Summary
 double maxAcceleration()
           
 double maxDeceleration()
           
 double maxSpeed()
           
static IEngine.EngineType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IEngine.EngineType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 boolean zeroEmissions()
           
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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()