Class SmeProtHState
- java.lang.Object
-
- org.openmuc.jeebus.ship.state.State
-
- org.openmuc.jeebus.ship.state.ConnectionDataPreparation
-
- org.openmuc.jeebus.ship.state.smeproth.SmeProtHState
-
public class SmeProtHState extends ConnectionDataPreparation
-
-
Field Summary
Fields Modifier and Type Field Description protected SmeProtHSubStatesubStateprotected TimeoutTimerwaitTimerprotected intwaitTimerVal-
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
log, logPrefix, shipConnCB
-
-
Constructor Summary
Constructors Constructor Description SmeProtHState(ShipConnCallBack shipConnCB, Configuration config, java.lang.String logPrefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommonAbort(byte errorType)voiddeactivateAllTimers()protected voiddeactivateWaitTimer()SmeProtHSubStategetSubState()TimeoutTimergetWaitTimer()voidinit()protected voidnextState()voidprocessMsg(byte[] msg)voidsetSubState(SubState subState)voidsetWaitTimer(TimeoutTimer waitTimer)protected voidstartWaitTimer()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
-
-
-
-
Field Detail
-
waitTimerVal
protected final int waitTimerVal
- See Also:
- Constant Field Values
-
subState
protected SmeProtHSubState subState
-
waitTimer
protected TimeoutTimer waitTimer
-
-
Constructor Detail
-
SmeProtHState
public SmeProtHState(ShipConnCallBack shipConnCB, Configuration config, java.lang.String logPrefix)
-
-
Method Detail
-
startWaitTimer
protected void startWaitTimer()
-
deactivateWaitTimer
protected void deactivateWaitTimer()
-
commonAbort
public void commonAbort(byte errorType)
-
processMsg
public void processMsg(byte[] msg)
- Specified by:
processMsgin classState
-
nextState
protected void nextState()
- Specified by:
nextStatein classConnectionDataPreparation
-
deactivateAllTimers
public void deactivateAllTimers()
- Specified by:
deactivateAllTimersin classConnectionDataPreparation
-
getSubState
public SmeProtHSubState getSubState()
- Specified by:
getSubStatein classConnectionDataPreparation
-
setSubState
public void setSubState(SubState subState)
- Specified by:
setSubStatein classConnectionDataPreparation
-
init
public void init()
- Specified by:
initin classConnectionDataPreparation
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getWaitTimer
public TimeoutTimer getWaitTimer()
-
setWaitTimer
public void setWaitTimer(TimeoutTimer waitTimer)
-
-