Engine

State

Status

Declaration

getStatus()

Example

val state:Engine.State
assertTrue(state.status.value == OnOffState.OFF)
// Engine is off

Start stop state

Declaration

getStartStopState()

Example

val state:Engine.State
assertTrue(state.startStopState.value == ActiveState.ACTIVE)
// Automatic engine start-stop system is active

Setters

Turn engine on off

Declaration

public TurnEngineOnOff(OnOffState status)

Example

val turnEngineOnOff = Engine.TurnEngineOnOff(OnOffState.OFF)    

Activate deactivate start stop

Declaration

public ActivateDeactivateStartStop(ActiveState startStopState)

Example

val activateDeactivateStartStop = Engine.ActivateDeactivateStartStop(ActiveState.ACTIVE)    

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)