Package org.openmuc.jship.state.smehello
Class Listen
- java.lang.Object
-
- org.openmuc.jship.state.SubState
-
- org.openmuc.jship.state.smehello.SmeHelloSubState
-
- org.openmuc.jship.state.smehello.Listen
-
- Direct Known Subclasses:
PendingListen
,ReadyListen
public abstract class Listen extends SmeHelloSubState
-
-
Field Summary
-
Fields inherited from class org.openmuc.jship.state.smehello.SmeHelloSubState
helloCallBacks, phaseType
-
Fields inherited from class org.openmuc.jship.state.SubState
busy, changeStateCB, log, stateCB
-
-
Constructor Summary
Constructors Constructor Description Listen(StateCallBack stateCB, HelloCallBacks helloCallBacks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isInvalidMsg(HelloMsg msg)
protected HelloMsg
receiveMsg()
helper method wraps parsing in a try/catch block.void
setNextSubState()
-
Methods inherited from class org.openmuc.jship.state.smehello.SmeHelloSubState
getPhaseType
-
Methods inherited from class org.openmuc.jship.state.SubState
doProcedure, getStateCB, isBusy, next, procedure, setBusy, setStateCB
-
-
-
-
Constructor Detail
-
Listen
public Listen(StateCallBack stateCB, HelloCallBacks helloCallBacks)
-
-
Method Detail
-
setNextSubState
public void setNextSubState()
- Specified by:
setNextSubState
in classSubState
-
receiveMsg
protected HelloMsg receiveMsg()
helper method wraps parsing in a try/catch block.- Returns:
- the parsed SME_HELLO message if successful, otherwise
null
-
isInvalidMsg
protected boolean isInvalidMsg(HelloMsg msg)
-
-