|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.universAAL.lddi.lib.ieeex73std.x73.p20601.fsm.StateMachine20601
public class StateMachine20601
Field Summary | |
---|---|
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 Summary | |
---|---|
StateMachine20601(Manager manager,
EventIEEEManager evtmgr)
The manager starts switched off |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public StateMachine20601(Manager manager, EventIEEEManager evtmgr)
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |