Engine
State
Status
Declaration
getStatus()
Example
val state:Engine.State
assertTrue(state.status.value == OnOffState.OFF)
// Engine is off
Start stop state
Declaration
getStartStopState()
Discussion
Indicates wheter the start-stop system is currently active or not
Example
val state:Engine.State
assertTrue(state.startStopState.value == ActiveState.ACTIVE)
// Automatic engine start-stop system is currently active
Start stop enabled
Declaration
getStartStopEnabled()
Discussion
Indicates if the automatic start-stop system is enabled or not
Example
val state:Engine.State
assertTrue(state.startStopEnabled.value == EnabledState.ENABLED)
// Automatic start-stop system is enabled
Setters
Turn engine on off
Declaration
public TurnEngineOnOff(OnOffState status)
Example
val turnEngineOnOff = Engine.TurnEngineOnOff(OnOffState.OFF)
Enable disable start stop
Declaration
public EnableDisableStartStop(EnabledState startStopEnabled)
Example
val enableDisableStartStop = Engine.EnableDisableStartStop(EnabledState.ENABLED)
Getters
Get Engine property availability information
Declaration
public GetStateAvailability()
public GetStateAvailability(byte... propertyIdentifiers)
Example
// get all property availabilities
val getAvailability = GetStateAvailability()
// get status and startStopState property availabilities
val getAvailabilityProperties = GetStateAvailability(0x01, 0x02)
Get Engine properties
Declaration
public GetState()
public GetState(byte... propertyIdentifiers)
Example
// get all properties
val getState = GetState()
// get status and startStopState properties
val getStateProperties = GetState(0x01, 0x02)