public class StateMachine20601 extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CHANNELSTATE_ASSOCIATED_CONFIGURING_CHECKINGCONFIG |
static int |
CHANNELSTATE_ASSOCIATED_CONFIGURING_WAITINGFORCONFIG |
static int |
CHANNELSTATE_ASSOCIATED_OPERATING |
static int |
CHANNELSTATE_ASSOCIATING |
static int |
CHANNELSTATE_DISASSOCIATING |
static int |
CHANNELSTATE_UNASSOCIATED |
static String |
CHANNELTRANSPORT_CONNECTED_STRING |
static String |
CHANNELTRANSPORT_DISCONNECTED_STRING |
static boolean |
CHANNELTRANSPORTSTATE_CONNECTED |
static boolean |
CHANNELTRANSPORTSTATE_DISCONNECTED |
EventIEEEManager |
evtmanager |
Timeout |
timeout |
Constructor and Description |
---|
StateMachine20601(Manager manager,
EventIEEEManager evtmgr)
The manager starts switched off
|
Modifier and Type | Method and Description |
---|---|
int |
getChannelState() |
String |
getStringChannelState() |
String |
getStringTransportState() |
boolean |
getTransportState()
Getters and setters
|
boolean |
isValidTransition(int oldstate,
int newstate)
Check if the transition is valid or not!
|
void |
resetthis(int i) |
boolean |
setChannelState(int newstate) |
void |
startTimeout() |
void |
testFSM()
Comment the next two methods once they are not needed.
|
boolean |
transitiontoAssociating()
Once the transport is activated, the process of associating may start.
|
boolean |
transitiontoCheckingConfig()
Once the manager receives a configuration from the agent, it will be
analysed for knowing if it can be handled.
|
boolean |
transitiontoDisassociating()
The data communication has finished successfully, so the agent and the
manager close the association until the next interaction.
|
boolean |
transitiontoOperating()
Finally, after checking that the configuration is valid, the data channel
can be stablished
Also, the process of receiving and checking configurations could be
avoided if the agent information has been stored in a previous connection
in a cache.
|
boolean |
transitiontoUnassociated()
The this turns back to its initial state.
|
boolean |
transitiontoWaitingConfig()
This state is reached when the association request is accepted by the
manager, but the agent information is not stored in cache.
|
boolean |
transportActivate()
Activation of the transport protocol due to a incoming connection
|
boolean |
transportDeactivate()
Disconnection from the agent
|
public static final boolean CHANNELTRANSPORTSTATE_DISCONNECTED
public static final boolean CHANNELTRANSPORTSTATE_CONNECTED
public static final String CHANNELTRANSPORT_DISCONNECTED_STRING
public static final String CHANNELTRANSPORT_CONNECTED_STRING
public static final int CHANNELSTATE_UNASSOCIATED
public static final int CHANNELSTATE_ASSOCIATING
public static final int CHANNELSTATE_ASSOCIATED_OPERATING
public static final int CHANNELSTATE_ASSOCIATED_CONFIGURING_CHECKINGCONFIG
public static final int CHANNELSTATE_ASSOCIATED_CONFIGURING_WAITINGFORCONFIG
public static final int CHANNELSTATE_DISASSOCIATING
public EventIEEEManager evtmanager
public Timeout timeout
public StateMachine20601(Manager manager, EventIEEEManager evtmgr)
public boolean getTransportState()
public int getChannelState()
public String getStringTransportState()
public String getStringChannelState()
public boolean setChannelState(int newstate)
public boolean transportActivate()
public boolean transportDeactivate()
public boolean transitiontoUnassociated()
public boolean transitiontoAssociating()
public boolean transitiontoOperating()
public boolean transitiontoCheckingConfig()
public boolean transitiontoWaitingConfig()
public boolean transitiontoDisassociating()
public boolean isValidTransition(int oldstate, int newstate)
public void testFSM()
public void resetthis(int i)
public void startTimeout()
Copyright © 2018 universAAL Consortium. All rights reserved.