Package org.openmuc.jship.state.cmi
Class CmiState
- java.lang.Object
-
- org.openmuc.jship.state.State
-
- org.openmuc.jship.state.cmi.CmiState
-
public class CmiState extends State
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
log
-
Fields inherited from class org.openmuc.jship.state.State
changeStateCB, checkTimeoutExecs, config, logPrefix, receivedMsg, shipConnCB, stateCB, stateTransCBList
-
-
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 protected void
deactivateAllTimers()
TimeoutTimer
getCmiTimeoutTimer()
CmiSubState
getSubState()
void
init()
protected void
nextState()
void
processMsg(byte[] msg)
process a received messagevoid
setSubState(SubState subState)
protected void
startCmiTimer()
void
stopCmiTimer()
protected void
timedOut(TimeoutTimer timeoutTimer)
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
-
-
-
-
Constructor Detail
-
CmiState
public CmiState(ShipConnCallBack shipConnCB, Configuration config, java.lang.String logPrefix)
-
-
Method Detail
-
processMsg
public void processMsg(byte[] msg)
process a received message- Specified by:
processMsg
in classState
- Parameters:
msg
- the received message
-
startCmiTimer
protected void startCmiTimer()
-
stopCmiTimer
public void stopCmiTimer()
-
getSubState
public CmiSubState getSubState()
- Specified by:
getSubState
in classState
-
setSubState
public void setSubState(SubState subState)
- Specified by:
setSubState
in classState
-
getCmiTimeoutTimer
public TimeoutTimer getCmiTimeoutTimer()
-
deactivateAllTimers
protected void deactivateAllTimers()
- Specified by:
deactivateAllTimers
in classState
-
timedOut
protected void timedOut(TimeoutTimer timeoutTimer)
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
-
-