com.azalient.api.b.parameters
Interface IEngine

All Superinterfaces:
IRecord, RecordR, RecordRW, RecordW, SortableData, StoreRecordRW

public interface IEngine
extends StoreRecordRW

An interface to one of the engine definitions


Nested Class Summary
static class IEngine.Emission
          An enumeration of emission types produced by each engine
static class IEngine.EngineType
          An enumeration of standard engine types.
 
Field Summary
 
Fields inherited from interface com.azalient.api.a.tables.IRecord
DELETED, KEY_SEP, KEY_SEP_CHAR
 
Method Summary
 double gramsPerSecond(IEngine.Emission emission, double speed, double acceleration)
          Returns the emission rate of the given pollutant, in grams/s, of this engine, at the given speed (m/s) and acceleration (m/s/s)
 double maxAcceleration(double speed, double gradient)
          Return the maximum acceleration, in m/s/s, for this engine at the given speed (in m/s) and gradient.
 double maxDeceleration(double speed, double gradient)
          Return the maximum deceleration, in m/s/s, for this engine at the given speed (in m/s) and gradient.
 double maxSpeed()
          Returns the maximum speed of this engine
 void set(IEngineRecord er)
          Given an engine record, read from file, set up the table of acceleration, deceleration and emission values
 boolean zeroEmissions()
          Returns true if this is a zero-emissions engine.
 
Methods inherited from interface com.azalient.api.file.StoreRecordRW
canRename, rename, store
 
Methods inherited from interface com.azalient.api.file.RecordR
extraSet, finished, isApplicable, isEditable, set
 
Methods inherited from interface com.azalient.api.a.tables.IRecord
name
 
Methods inherited from interface com.azalient.api.file.RecordW
extraCols, extraGet, extraGetB, extraGetD, extraGetI, extraGetS, extraGetT, get, isVolatile
 

Method Detail

set

void set(IEngineRecord er)
Given an engine record, read from file, set up the table of acceleration, deceleration and emission values


maxAcceleration

double maxAcceleration(double speed,
                       double gradient)
Return the maximum acceleration, in m/s/s, for this engine at the given speed (in m/s) and gradient.


maxDeceleration

double maxDeceleration(double speed,
                       double gradient)
Return the maximum deceleration, in m/s/s, for this engine at the given speed (in m/s) and gradient.


gramsPerSecond

double gramsPerSecond(IEngine.Emission emission,
                      double speed,
                      double acceleration)
Returns the emission rate of the given pollutant, in grams/s, of this engine, at the given speed (m/s) and acceleration (m/s/s)


maxSpeed

double maxSpeed()
Returns the maximum speed of this engine


zeroEmissions

boolean zeroEmissions()
Returns true if this is a zero-emissions engine.