Package org.openmuc.jship.state.smeproth
Class SmeProtHState
- java.lang.Object
-
- org.openmuc.jship.state.State
-
- org.openmuc.jship.state.smeproth.SmeProtHState
-
public class SmeProtHState extends State
-
-
Field Summary
Fields Modifier and Type Field Description protected SmeProtHSubState
subState
protected TimeoutTimer
waitTimer
protected int
waitTimerVal
-
Fields inherited from class org.openmuc.jship.state.State
changeStateCB, checkTimeoutExecs, config, log, logPrefix, receivedMsg, shipConnCB, stateCB, stateTransCBList
-
-
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 void
commonAbort(byte errorType)
protected void
deactivateAllTimers()
protected void
deactivateWaitTimer()
SmeProtHSubState
getSubState()
TimeoutTimer
getWaitTimer()
void
init()
protected void
nextState()
void
processMsg(byte[] msg)
void
setSubState(SubState subState)
void
setWaitTimer(TimeoutTimer waitTimer)
protected void
startWaitTimer()
protected void
timedOut(TimeoutTimer timer)
what should happen if a timer times outjava.lang.String
toString()
-
Methods inherited from class org.openmuc.jship.state.State
addStateTransitionCB, checkTimeout, getConfig, getLogPrefix, next, peekReceivedMsg, pollReceivedMsg, receivedMsg, removeStateTransitionCB, sendMsg, setReceivedMsg, setStateTransCBList, shutDownExecutors
-
-
-
-
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:
processMsg
in classState
-
deactivateAllTimers
protected void deactivateAllTimers()
- Specified by:
deactivateAllTimers
in classState
-
getSubState
public SmeProtHSubState getSubState()
- Specified by:
getSubState
in classState
-
setSubState
public void setSubState(SubState subState)
- Specified by:
setSubState
in classState
-
timedOut
protected void timedOut(TimeoutTimer timer)
Description copied from class:State
what should happen if a timer times out
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getWaitTimer
public TimeoutTimer getWaitTimer()
-
setWaitTimer
public void setWaitTimer(TimeoutTimer waitTimer)
-
-