org.universAAL.lddi.lib.ieeex73std.x73.p20601.fsm
Class StateMachine20601

Package class diagram package StateMachine20601
java.lang.Object
  extended by org.universAAL.lddi.lib.ieeex73std.x73.p20601.fsm.StateMachine20601

public class StateMachine20601
extends Object


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

CHANNELTRANSPORTSTATE_DISCONNECTED

public static final boolean CHANNELTRANSPORTSTATE_DISCONNECTED
See Also:
Constant Field Values

CHANNELTRANSPORTSTATE_CONNECTED

public static final boolean CHANNELTRANSPORTSTATE_CONNECTED
See Also:
Constant Field Values

CHANNELTRANSPORT_DISCONNECTED_STRING

public static final String CHANNELTRANSPORT_DISCONNECTED_STRING
See Also:
Constant Field Values

CHANNELTRANSPORT_CONNECTED_STRING

public static final String CHANNELTRANSPORT_CONNECTED_STRING
See Also:
Constant Field Values

CHANNELSTATE_UNASSOCIATED

public static final int CHANNELSTATE_UNASSOCIATED
See Also:
Constant Field Values

CHANNELSTATE_ASSOCIATING

public static final int CHANNELSTATE_ASSOCIATING
See Also:
Constant Field Values

CHANNELSTATE_ASSOCIATED_OPERATING

public static final int CHANNELSTATE_ASSOCIATED_OPERATING
See Also:
Constant Field Values

CHANNELSTATE_ASSOCIATED_CONFIGURING_CHECKINGCONFIG

public static final int CHANNELSTATE_ASSOCIATED_CONFIGURING_CHECKINGCONFIG
See Also:
Constant Field Values

CHANNELSTATE_ASSOCIATED_CONFIGURING_WAITINGFORCONFIG

public static final int CHANNELSTATE_ASSOCIATED_CONFIGURING_WAITINGFORCONFIG
See Also:
Constant Field Values

CHANNELSTATE_DISASSOCIATING

public static final int CHANNELSTATE_DISASSOCIATING
See Also:
Constant Field Values

evtmanager

public EventIEEEManager evtmanager

timeout

public Timeout timeout
Constructor Detail

StateMachine20601

public StateMachine20601(Manager manager,
                         EventIEEEManager evtmgr)
The manager starts switched off

Method Detail

getTransportState

public boolean getTransportState()
Getters and setters

Returns:

getChannelState

public int getChannelState()

getStringTransportState

public String getStringTransportState()

getStringChannelState

public String getStringChannelState()

setChannelState

public boolean setChannelState(int newstate)

transportActivate

public boolean transportActivate()
Activation of the transport protocol due to a incoming connection


transportDeactivate

public boolean transportDeactivate()
Disconnection from the agent


transitiontoUnassociated

public boolean transitiontoUnassociated()
The this turns back to its initial state. Unassociating from the agent.


transitiontoAssociating

public boolean transitiontoAssociating()
Once the transport is activated, the process of associating may start. First of all, it has to receive a association request from the agent.


transitiontoOperating

public 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.


transitiontoCheckingConfig

public boolean transitiontoCheckingConfig()
Once the manager receives a configuration from the agent, it will be analysed for knowing if it can be handled.


transitiontoWaitingConfig

public boolean transitiontoWaitingConfig()
This state is reached when the association request is accepted by the manager, but the agent information is not stored in cache. So, it has to obtain a configuration from it in order to know what king of device is and what information the agent provides. Another option is, while configurating, the received configuration is not accepted, so the manager will wait for another one.


transitiontoDisassociating

public boolean transitiontoDisassociating()
The data communication has finished successfully, so the agent and the manager close the association until the next interaction.


isValidTransition

public boolean isValidTransition(int oldstate,
                                 int newstate)
Check if the transition is valid or not!


testFSM

public void testFSM()
Comment the next two methods once they are not needed.


resetthis

public void resetthis(int i)

startTimeout

public void startTimeout()


Copyright © 2014 universAAL Consortium. All Rights Reserved.