starlink.ApplicationAutomata
Class AbstractState

java.lang.Object
  extended by starlink.ApplicationAutomata.AbstractState
All Implemented Interfaces:
State
Direct Known Subclasses:
ClientState, NoActionState, RecvState, SendState, ServerState

public abstract class AbstractState
extends java.lang.Object
implements State


Field Summary
protected  BindingOperations binderInstance
           
protected  org.jdom.Document binding
           
 Action boundAction
           
 Inputs boundInputs
           
 Inputs boundOutputs
           
protected  java.util.HashMap<java.lang.String,BoundType> boundTypes
           
protected  java.lang.String endLabel
           
 CallException exceptions
           
 StateMachine LocalStateMachine
           
protected  StateMachine MergedAutomaton
           
protected  java.lang.String startLabel
           
protected  org.jdom.Element stateDoc
           
protected  java.util.HashMap<java.lang.String,java.lang.Object> stateQueue
           
 
Constructor Summary
AbstractState(java.lang.String name, StateMachine gs, ProtocolBridge ae)
           
 
Method Summary
 void addPrev(State prevState)
           
 void addTransition(java.lang.String xpath, State nextState)
           
 org.jdom.Document getBinding()
           
 java.lang.String getConditionLogic()
           
 java.lang.String getName()
           
 NetworkEngine.INetworkTransport getNetworkLibrary()
           
 java.util.HashMap<java.lang.String,State> getNext()
           
 Inputs getOutputs()
           
 java.util.Collection<State> getPrev()
           
 ProtocolAttributes getProtocol()
           
 java.util.HashMap<java.lang.String,java.lang.Object> getQueue()
           
 org.jdom.Element getStateDescription()
           
 java.lang.String getTranslationLogic()
           
 void removeTransition(java.lang.String xpath)
           
 void setConditionLogic(java.lang.String xml)
           
 void setEndNode(boolean bool)
           
 void setMonitor(boolean bool)
           
 void setName(java.lang.String name)
           
 void setProtocol(ProtocolAttributes protocol)
           
 void setStartNode(boolean bool)
           
 void setTranslationLogic(java.lang.String xml)
           
 void split(State epsilonState, State newS2)
           
 java.lang.String toString()
           
 void updateTransitions(State nextState, State newState)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface starlink.ApplicationAutomata.State
invokeTransition, type, typeOf
 

Field Detail

stateQueue

protected java.util.HashMap<java.lang.String,java.lang.Object> stateQueue

MergedAutomaton

protected StateMachine MergedAutomaton

boundAction

public Action boundAction

boundInputs

public Inputs boundInputs

boundOutputs

public Inputs boundOutputs

exceptions

public CallException exceptions

boundTypes

protected java.util.HashMap<java.lang.String,BoundType> boundTypes

stateDoc

protected org.jdom.Element stateDoc

binding

protected org.jdom.Document binding

startLabel

protected java.lang.String startLabel

endLabel

protected java.lang.String endLabel

LocalStateMachine

public StateMachine LocalStateMachine

binderInstance

protected BindingOperations binderInstance
Constructor Detail

AbstractState

public AbstractState(java.lang.String name,
                     StateMachine gs,
                     ProtocolBridge ae)
Method Detail

getStateDescription

public org.jdom.Element getStateDescription()
Specified by:
getStateDescription in interface State

getBinding

public org.jdom.Document getBinding()
Specified by:
getBinding in interface State

getOutputs

public Inputs getOutputs()
Specified by:
getOutputs in interface State

getProtocol

public ProtocolAttributes getProtocol()
Specified by:
getProtocol in interface State

setProtocol

public void setProtocol(ProtocolAttributes protocol)
Specified by:
setProtocol in interface State

setName

public void setName(java.lang.String name)
Specified by:
setName in interface State

getName

public java.lang.String getName()
Specified by:
getName in interface State

setStartNode

public void setStartNode(boolean bool)
Specified by:
setStartNode in interface State

setEndNode

public void setEndNode(boolean bool)
Specified by:
setEndNode in interface State

setMonitor

public void setMonitor(boolean bool)

addPrev

public void addPrev(State prevState)
Specified by:
addPrev in interface State

addTransition

public void addTransition(java.lang.String xpath,
                          State nextState)
Specified by:
addTransition in interface State

removeTransition

public void removeTransition(java.lang.String xpath)
Specified by:
removeTransition in interface State

getPrev

public java.util.Collection<State> getPrev()
Specified by:
getPrev in interface State

getNext

public java.util.HashMap<java.lang.String,State> getNext()
Specified by:
getNext in interface State

updateTransitions

public void updateTransitions(State nextState,
                              State newState)
Specified by:
updateTransitions in interface State

split

public void split(State epsilonState,
                  State newS2)
Specified by:
split in interface State

setTranslationLogic

public void setTranslationLogic(java.lang.String xml)
Specified by:
setTranslationLogic in interface State

getTranslationLogic

public java.lang.String getTranslationLogic()
Specified by:
getTranslationLogic in interface State

setConditionLogic

public void setConditionLogic(java.lang.String xml)
Specified by:
setConditionLogic in interface State

getConditionLogic

public java.lang.String getConditionLogic()
Specified by:
getConditionLogic in interface State

getQueue

public java.util.HashMap<java.lang.String,java.lang.Object> getQueue()
Specified by:
getQueue in interface State

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getNetworkLibrary

public NetworkEngine.INetworkTransport getNetworkLibrary()