Class CmiState
- java.lang.Object
-
- org.openmuc.jeebus.ship.state.State
-
- org.openmuc.jeebus.ship.state.ConnectionDataPreparation
-
- org.openmuc.jeebus.ship.state.cmi.CmiState
-
public class CmiState extends ConnectionDataPreparation
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerlog-
Fields inherited from class org.openmuc.jeebus.ship.state.ConnectionDataPreparation
changeStateCB, config, receivedMsg, stateCB, stateTransCBList
-
Fields inherited from class org.openmuc.jeebus.ship.state.State
logPrefix, shipConnCB
-
-
Constructor Summary
Constructors Constructor Description CmiState(ShipConnCallBack shipConnCB, Configuration config, java.lang.String logPrefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeactivateAllTimers()TimeoutTimergetCmiTimeoutTimer()CmiSubStategetSubState()voidinit()protected voidnextState()voidprocessMsg(byte[] msg)process a received messagevoidsetSubState(SubState subState)protected voidstartCmiTimer()voidstopCmiTimer()java.lang.StringtoString()-
Methods inherited from class org.openmuc.jeebus.ship.state.ConnectionDataPreparation
addStateTransitionCB, getConfig, next, peekReceivedMsg, pollReceivedMsg, receivedMsg, removeStateTransitionCB, setReceivedMsg, setStateTransCBList
-
Methods inherited from class org.openmuc.jeebus.ship.state.State
getLogPrefix, sendMsg
-
-
-
-
Constructor Detail
-
CmiState
public CmiState(ShipConnCallBack shipConnCB, Configuration config, java.lang.String logPrefix)
-
-
Method Detail
-
init
public void init()
- Specified by:
initin classConnectionDataPreparation
-
processMsg
public void processMsg(byte[] msg)
process a received message- Specified by:
processMsgin classState- Parameters:
msg- the received message
-
startCmiTimer
protected void startCmiTimer()
-
stopCmiTimer
public void stopCmiTimer()
-
getSubState
public CmiSubState getSubState()
- Specified by:
getSubStatein classConnectionDataPreparation
-
setSubState
public void setSubState(SubState subState)
- Specified by:
setSubStatein classConnectionDataPreparation
-
getCmiTimeoutTimer
public TimeoutTimer getCmiTimeoutTimer()
-
nextState
protected void nextState()
- Specified by:
nextStatein classConnectionDataPreparation
-
deactivateAllTimers
public void deactivateAllTimers()
- Specified by:
deactivateAllTimersin classConnectionDataPreparation
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-