Bindings
Class BindingOperations

java.lang.Object
  extended by Bindings.BindingOperations

public class BindingOperations
extends java.lang.Object

Operations to bind abstract application automata actions to concrete protocol send and receive actions.

Author:
Paul Grace

Constructor Summary
protected BindingOperations()
          BindingOperations is a singleton instance that is created once per Starlink instantiation.
 
Method Summary
 AbstractMessage bindAction(ActionMessage AM, java.lang.String msg, State firstState, org.jdom.Document binding)
           
 Action bindAction(org.jdom.Document xmlBinding, int type)
           
 CallException bindExceptions(org.jdom.Document xmlBinding)
           
 void bindInputs(org.jdom.Element xmlBinding, Inputs boundInputs)
           
 void bindInputValues(Inputs inps, ActionMessage am, org.jdom.Document binding, java.util.HashMap<java.lang.String,BoundType> boundTypes)
           
 void bindLogic(org.jdom.Document xmlBinding, int type, StateMachine LocalStateMachine)
           
 void bindOutputs(org.jdom.Element xmlBinding, Inputs boundOutputs)
           
 void bindOutputValues(ActionMessage inputAction, AbstractMessage msg, org.jdom.Document binding, java.util.HashMap<java.lang.String,BoundType> boundTypes)
           
 BindResults bindStates(StateType type, org.jdom.Document xmlBinding, ProtocolBridge ae)
           
 void bindTypes(org.jdom.Document xmlBinding, java.util.HashMap<java.lang.String,BoundType> boundTypes)
           
static BindingOperations getInstance()
           
 org.jdom.Document jDomReadXmlStream(java.io.InputStream in)
           
 void setEngine(ProtocolBridge ae)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindingOperations

protected BindingOperations()
BindingOperations is a singleton instance that is created once per Starlink instantiation.

Method Detail

getInstance

public static BindingOperations getInstance()

setEngine

public void setEngine(ProtocolBridge ae)

bindAction

public AbstractMessage bindAction(ActionMessage AM,
                                  java.lang.String msg,
                                  State firstState,
                                  org.jdom.Document binding)
                           throws BindingException
Parameters:
AM -
msg -
firstState -
binding -
Returns:
Throws:
BindingException

bindOutputValues

public void bindOutputValues(ActionMessage inputAction,
                             AbstractMessage msg,
                             org.jdom.Document binding,
                             java.util.HashMap<java.lang.String,BoundType> boundTypes)
                      throws BindingException
Parameters:
inputAction -
msg -
Throws:
BindingException

bindInputValues

public void bindInputValues(Inputs inps,
                            ActionMessage am,
                            org.jdom.Document binding,
                            java.util.HashMap<java.lang.String,BoundType> boundTypes)
                     throws BindingException
Parameters:
inps -
am -
Throws:
BindingException

bindAction

public Action bindAction(org.jdom.Document xmlBinding,
                         int type)
                  throws BindingException
Throws:
BindingException

bindLogic

public void bindLogic(org.jdom.Document xmlBinding,
                      int type,
                      StateMachine LocalStateMachine)
               throws BindingException
Throws:
BindingException

bindTypes

public void bindTypes(org.jdom.Document xmlBinding,
                      java.util.HashMap<java.lang.String,BoundType> boundTypes)

bindExceptions

public CallException bindExceptions(org.jdom.Document xmlBinding)

bindInputs

public void bindInputs(org.jdom.Element xmlBinding,
                       Inputs boundInputs)

bindOutputs

public void bindOutputs(org.jdom.Element xmlBinding,
                        Inputs boundOutputs)

bindStates

public BindResults bindStates(StateType type,
                              org.jdom.Document xmlBinding,
                              ProtocolBridge ae)
                       throws BindingException
Throws:
BindingException

jDomReadXmlStream

public org.jdom.Document jDomReadXmlStream(java.io.InputStream in)