|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IEngine
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 |
|---|
void set(IEngineRecord er)
double maxAcceleration(double speed,
double gradient)
double maxDeceleration(double speed,
double gradient)
double gramsPerSecond(IEngine.Emission emission,
double speed,
double acceleration)
double maxSpeed()
boolean zeroEmissions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||