Class SmePinState
- java.lang.Object
-
- org.openmuc.jeebus.ship.state.State
-
- org.openmuc.jeebus.ship.state.ConnectionDataPreparation
-
- org.openmuc.jeebus.ship.state.smepin.SmePinState
-
public class SmePinState extends ConnectionDataPreparation
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Loggerlog-
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
logPrefix, shipConnCB
-
-
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 voidcommonEnableConnectionDataExchange()used to enable Connection Data ExchangevoidcommonPinError(PinError error)used to indicate that a wrong PIN was receivedvoidcommonSendPinRequirement(ConnectionPinStateType cpsType)used to send own PIN requirementvoiddeactivateAllTimers()AskgetAskSubState()CheckgetSubState()assumes that user wants the CHECK sub-state, for ASK sub-state use getAskSubState()voidinit()protected voidnextState()voidprocessMsg(byte[] msg)voidsetOwnPinRequirements(ConnectionPinStateType pinRequirements)voidsetSubState(SubState subState)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
-
-
-
-
Constructor Detail
-
SmePinState
public SmePinState(ShipConnCallBack shipConnCB, Configuration config, java.lang.String logPrefix)
-
-
Method Detail
-
init
public void init()
- Specified by:
initin classConnectionDataPreparation
-
processMsg
public void processMsg(byte[] msg)
- Specified by:
processMsgin 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- Parameters:
error- PIN error
-
nextState
protected void nextState()
- Specified by:
nextStatein classConnectionDataPreparation
-
deactivateAllTimers
public void deactivateAllTimers()
- Specified by:
deactivateAllTimersin classConnectionDataPreparation
-
getSubState
public Check getSubState()
assumes that user wants the CHECK sub-state, for ASK sub-state use getAskSubState()- Specified by:
getSubStatein classConnectionDataPreparation- Returns:
- the specific CHECK sub-state
-
setSubState
public void setSubState(SubState subState)
- Specified by:
setSubStatein classConnectionDataPreparation
-
getAskSubState
public Ask getAskSubState()
-
setOwnPinRequirements
public void setOwnPinRequirements(ConnectionPinStateType pinRequirements)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-