Class SmeHelloUtils
- java.lang.Object
-
- org.openmuc.jeebus.ship.state.machine.smehello.SmeHelloUtils
-
public final class SmeHelloUtils extends java.lang.ObjectCommon procedures and constants for SME states
-
-
Field Summary
Fields Modifier and Type Field Description static byte[]ABORT_MSGstatic intT_hello_prolong_minstatic intT_hello_prolong_thr_incstatic intT_hello_prolong_waiting_gap
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidabort(StateHandlerContext context)Common "abort" procedurestatic voiddeactivateAllTimers(StateHandlerContext context)static voiddecideProlongationRequest(StateHandlerContext context)Common procedure to decide an incoming prolongation requeststatic byte[]helloUpdateMessage(State state, java.lang.Integer timeRemaining)static voidincreaseWfrTimer(StateHandlerContext context)static voidsendHelloUpdateMessage(StateHandlerContext context)Common procedure for sending an SME "hello" Update Message
-
-
-
Field Detail
-
ABORT_MSG
public static final byte[] ABORT_MSG
-
T_hello_prolong_thr_inc
public static final int T_hello_prolong_thr_inc
- See Also:
- Constant Field Values
-
T_hello_prolong_waiting_gap
public static final int T_hello_prolong_waiting_gap
- See Also:
- Constant Field Values
-
T_hello_prolong_min
public static final int T_hello_prolong_min
- See Also:
- Constant Field Values
-
-
Method Detail
-
deactivateAllTimers
public static void deactivateAllTimers(StateHandlerContext context)
-
abort
public static void abort(StateHandlerContext context)
Common "abort" procedure
-
increaseWfrTimer
public static void increaseWfrTimer(StateHandlerContext context)
-
decideProlongationRequest
public static void decideProlongationRequest(StateHandlerContext context)
Common procedure to decide an incoming prolongation request
-
sendHelloUpdateMessage
public static void sendHelloUpdateMessage(StateHandlerContext context)
Common procedure for sending an SME "hello" Update Message- Parameters:
context- the current handler context
-
helloUpdateMessage
public static byte[] helloUpdateMessage(State state, java.lang.Integer timeRemaining)
-
-