Package org.openmuc.jship.state.smepin
Class SmePinState
- java.lang.Object
-
- org.openmuc.jship.state.State
-
- org.openmuc.jship.state.smepin.SmePinState
-
public class SmePinState extends State
-
-
Field Summary
Fields Modifier and Type Field Description protected 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 SmePinState(ShipConnCallBack shipConnCB, Configuration config, java.lang.String logPrefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
commonEnableConnectionDataExchange()
used to enable Connection Data Exchangevoid
commonPinError(PinError error)
used to indicate that a wrong PIN was receivedvoid
commonSendPinRequirement(ConnectionPinStateType cpsType)
used to send own PIN requirementprotected void
deactivateAllTimers()
Ask
getAskSubState()
Check
getSubState()
assumes that user wants the CHECK sub-state, for ASK sub-state use getAskSubState()void
init()
protected void
nextState()
void
processMsg(byte[] msg)
void
setOwnPinRequirements(ConnectionPinStateType pinRequirements)
void
setSubState(SubState subState)
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
-
SmePinState
public SmePinState(ShipConnCallBack shipConnCB, Configuration config, java.lang.String logPrefix)
-
-
Method Detail
-
processMsg
public void processMsg(byte[] msg)
- Specified by:
processMsg
in classState
-
commonSendPinRequirement
public void commonSendPinRequirement(ConnectionPinStateType cpsType)
used to send own PIN requirement- Parameters:
cpsType
- the PIN requirement
-
commonEnableConnectionDataExchange
public void commonEnableConnectionDataExchange()
used to enable Connection Data Exchange
-
commonPinError
public void commonPinError(PinError error)
used to indicate that a wrong PIN was received
-
deactivateAllTimers
protected void deactivateAllTimers()
- Specified by:
deactivateAllTimers
in classState
-
getSubState
public Check getSubState()
assumes that user wants the CHECK sub-state, for ASK sub-state use getAskSubState()- Specified by:
getSubState
in classState
- Returns:
- the specific CHECK sub-state
-
setSubState
public void setSubState(SubState subState)
- Specified by:
setSubState
in classState
-
getAskSubState
public Ask getAskSubState()
-
setOwnPinRequirements
public void setOwnPinRequirements(ConnectionPinStateType pinRequirements)
-
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
-
-