gov.sandia.ccaffeine.dc.user_iface.MVC
Class PythonStub

java.lang.Object
  extended by gov.sandia.ccaffeine.dc.user_iface.MVC.PythonStub

public class PythonStub
extends java.lang.Object

This java client sends Python code to a remote interface that is attached to the cca server. The code usually instructs the cca server to perform an action; for example, this client can instruct the cca server to instantiate component. The remote interface sends XML text to this java client; the XML text contains inforation on the state of the cca server; for example, the cca server can send the names of all loaded components.

This class opens a socket connection to the remote interface. Python code is sent from this client to the cca server's remote interface.


Field Summary
protected  ClientSocket clientSocket
           
protected  java.util.Hashtable hashtable
          Stores (methodName,ThreadWaitForReturnValue) pairs.
 
Constructor Summary
PythonStub()
           
 
Method Summary
 void addPythonControllerListener(PythonControllerListener listener)
           
protected  void broadcastCcaConnectionsBetweenTwoPorts(CcaConnectionBetweenTwoPorts[] ccaConnections)
           
protected  void broadcastCcaConnectionsBetweenTwoPorts(CcaConnectionsBetweenTwoPortsEvent event)
           
protected  void broadcastCloseComponent(CloseComponentEvent event)
           
protected  void broadcastCloseComponent(java.lang.String componentInstanceName)
           
protected  void broadcastComponentClassNames(ComponentClassNamesEvent event)
           
protected  void broadcastComponentClassNames(java.lang.String[] componentClassNames)
           
protected  void broadcastComponentInstances(CcaComponent[] componentInstances)
           
protected  void broadcastComponentInstances(ComponentInstancesEvent event)
           
protected  void broadcastComponentProperties(CcaComponentPropertyValue[] ccaComponentPropertyValues)
           
protected  void broadcastComponentProperties(CcaComponentPropertyValuesEvent event)
           
protected  void broadcastComponentProperty(CcaComponentPropertyValue ccaComponentPropertyValue)
           
protected  void broadcastComponentProperty(CcaComponentPropertyValueEvent event)
           
protected  void broadcastConnectTwoPorts(CcaConnectionBetweenTwoPorts ccaConnection)
           
protected  void broadcastConnectTwoPorts(CcaConnectTwoPortsEvent event)
           
protected  void broadcastDisconnectTwoPorts(CcaConnectionBetweenTwoPorts ccaConnection)
           
protected  void broadcastDisconnectTwoPorts(CcaDisconnectTwoPortsEvent event)
           
protected  void broadcastFixSharedLibrary()
           
protected  void broadcastFixSharedLibrary(FixSharedLibraryEvent event)
           
protected  void broadcastInstantiateComponent(CcaComponent ccaComponent)
           
protected  void broadcastInstantiateComponent(InstantiateComponentEvent event)
           
protected  void broadcastLaunchGoOnAllComponents()
           
protected  void broadcastLaunchGoOnAllComponents(LaunchGoOnAllComponentsEvent event)
           
protected  void broadcastLaunchGoOnOneComponent(CcaCommandLaunchGoOnOneComponent commandGo)
           
protected  void broadcastLaunchGoOnOneComponent(LaunchGoOnOneComponentEvent event)
           
protected  void broadcastLoadComponent(LoadComponentEvent event)
           
protected  void broadcastLoadComponent(java.lang.String componentClassName)
           
protected  void broadcastOpenCcaFramework()
           
protected  void broadcastOpenCcaFramework(OpenCcaFrameworkEvent event)
           
protected  void broadcastPortParameters(CcaPortParametersEvent event)
           
protected  void broadcastPortParameters(java.lang.String xmlPortParameters)
           
protected  void broadcastRemoveInstantiatedComponent(RemoveInstantiatedComponentEvent event)
           
protected  void broadcastRemoveInstantiatedComponent(java.lang.String componentInstanceName)
           
protected  void broadcastRemoveInstantiatedComponents(CcaComponentInstanceNames componentInstanceNames)
           
protected  void broadcastRemoveInstantiatedComponents(RemoveInstantiatedComponentsEvent event)
           
protected  void broadcastSetComponentProperty(CcaComponentPropertySetValueEvent event)
           
protected  void broadcastSetComponentProperty(CcaComponentPropertyValue ccaComponentPropertyValue)
           
protected  void broadcastSetDebugFlag(boolean debug)
           
protected  void broadcastSetDebugFlag(SetDebugFlagEvent event)
           
protected  void broadcastSetPathsToCcaComponents(SetPathsToCcaComponentsEvent event)
           
protected  void broadcastSetPathsToCcaComponents(java.lang.String[] paths)
           
protected  void broadcastSetPathToCcaComponents(SetPathToCcaComponentsEvent event)
           
protected  void broadcastSetPathToCcaComponents(java.lang.String path)
           
protected  void broadcastSetPortParameter(CcaPortParameterSetValueEvent event)
           
protected  void broadcastSetPortParameter(CcaPortParameterValue ccaPortParameterValue)
           
 java.lang.String closeComponent(java.lang.String componentInstanceName)
          Tell the python server to close the cca component.
 void closeSessionWithCcaServer()
          Close out the session with the python server.
 CcaConnectionBetweenTwoPorts connectTwoPorts(java.lang.String providesServiceComponentName, java.lang.String providesServicePortName, java.lang.String usesServiceComponentName, java.lang.String usesServicePortName)
          Tell the python server to connect two ports; the two ports may be in different components.
 CcaConnectionBetweenTwoPorts disconnectTwoPorts(java.lang.String providesServiceComponentName, java.lang.String providesServicePortName, java.lang.String usesServiceComponentName, java.lang.String usesServicePortName)
          Tell the python server to disconnect two ports; the two ports may be in different components.
 void fixSharedLibrary()
          fix C++ shared library problem.
 java.lang.String[] getComponentClassNames()
          Tell the python server to send back the names of all the classes that are loaded in the palette.
 CcaComponent[] getComponentInstances()
          Tell the python server to send back the names of all the classes that are instantiated in the arena.
 CcaComponentPropertyValue[] getComponentProperties(java.lang.String componentInstanceName)
          Ask the python server to send us the values of all the properties that belong to a component.
 CcaComponentPropertyValue getComponentProperty(java.lang.String componentInstanceName, java.lang.String propertyName)
          Ask the python server to send us the value of component property.
 CcaConnectionBetweenTwoPorts[] getConnections()
          Tell the python server to send back info on every connection.
 java.lang.String getPortParameters(java.lang.String componentInstanceName, java.lang.String portInstanceName)
           
 CcaComponent instantiateComponent(java.lang.String componentClassName, java.lang.String componentInstanceName)
          Tell the python server to instantiate a cca component.
 void launchGoOnAllComponents()
          Tell the python server to launch the run.
 CcaCommandLaunchGoOnOneComponent launchGoOnOneComponent(java.lang.String componentInstanceName)
          Tell the python server to launch the run.
 CcaCommandLaunchGoOnOneComponent launchGoOnOneComponent(java.lang.String componentInstanceName, java.lang.String portInstanceName)
          Tell the python server to launch the run.
 java.lang.String loadComponentClass(java.lang.String componentClassName)
          Tell the python server to load a component class.
static void main(java.lang.String[] args)
           
 void openFramework()
          Open a connection to the python server.
 void openSessionWithCcaServer(ClientSocket clientSocket)
          Open a session with the cca server.
protected  void printComponent(CcaComponent component)
          Print useful information on a component.
protected  void printConnection(CcaConnectionBetweenTwoPorts connection)
          Print useful information on a connection.
protected  void printDisconnection(CcaConnectionBetweenTwoPorts connection)
          Print useful information on a disconnection.
protected  java.lang.String readPython()
          Read a line of text from the python server.
 void removeInstantiatedComponent(java.lang.String componentInstanceName)
          Tell the python server to remove an instantiated cca component.
 CcaComponentInstanceNames removeInstantiatedComponents()
          Tell the python server to remove all instantiated cca components.
 void removePythonControllerListener(PythonControllerListener listener)
           
protected  void resultSet(java.lang.String resultSet)
          Parse and display result set.
 CcaComponentPropertyValue setComponentProperty(java.lang.String componentInstanceName, java.lang.String propertyName, java.lang.String propertyValue)
          Tell the python server to set the value of a component property.
 boolean setDebugFlag(boolean debug)
          Tell the python server to set the debug flag.
 java.lang.String[] setPathsToCcaComponents(java.lang.String[] paths)
          Tell the python server the names of the folders that contains all of the cca components.
 java.lang.String setPathToCcaComponents(java.lang.String path)
          Tell the python server the name of the folder that contains all of the cca components.
 CcaPortParameterValue setPortParameter(java.lang.String componentInstanceName, java.lang.String portInstanceName, java.lang.String fieldName, java.lang.String fieldValue)
           
 void test(ClientSocket clientSocket)
          test the Framework
protected  void writePython(java.lang.String s)
          Write a line of python code to the python server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clientSocket

protected ClientSocket clientSocket

hashtable

protected java.util.Hashtable hashtable
Stores (methodName,ThreadWaitForReturnValue) pairs.

The pairs are needed so that a method can send a command to the cca server, wait for a response from the cca server, return the response to the caller.

When this client invokes a method on the cca server:
*)This client creates a ThreadWaitForReturnValue
*)This client saves (methodName,ThreadWaitForReturnValue)
*)This client waits for the thread to finish its run
When the receiver gets a response from the server, the receiver looks up the response in this hashtable. If a match is found then the ThreadWaitforReturnValue is released.

Constructor Detail

PythonStub

public PythonStub()
Method Detail

writePython

protected void writePython(java.lang.String s)
Write a line of python code to the python server.

Parameters:
s - The line of python code that will be sent to the python server.

readPython

protected java.lang.String readPython()
Read a line of text from the python server.

Returns:
The line of text that we read from the python server.

openSessionWithCcaServer

public void openSessionWithCcaServer(ClientSocket clientSocket)
                              throws CanNotCommunicateWithCcaServerException
Open a session with the cca server.

A socket communication channel is established with the cca server. During this session, this comm channel will be used to send commands to the cca server and to receive state information from the cca server.

Open a socket connection to the cca server. Then send Python code to initialize this session.

Throws:
CanNotCommunicateWithCcaServerException

setDebugFlag

public boolean setDebugFlag(boolean debug)
                     throws CanNotCommunicateWithCcaServerException,
                            CanNotSetDebugFlagException
Tell the python server to set the debug flag.

Parameters:
debug - The value of the debug flag.
Returns:
The value of the debug flag.
Throws:
CanNotCommunicateWithCcaServerException
CanNotSetDebugFlagException

fixSharedLibrary

public void fixSharedLibrary()
                      throws CanNotCommunicateWithCcaServerException,
                             CanNotFixSharedLibraryException
fix C++ shared library problem.

Throws:
CanNotCommunicateWithCcaServerException - Communication error.
CanNotFixSharedLibraryException - cca's Python server can not fix the shared library problem.

openFramework

public void openFramework()
                   throws CanNotCommunicateWithCcaServerException,
                          CanNotOpenCcaFrameworkException
Open a connection to the python server. Tell the python server to instantiate a framework.

Throws:
CanNotCommunicateWithCcaServerException
CanNotOpenCcaFrameworkException

setPathToCcaComponents

public java.lang.String setPathToCcaComponents(java.lang.String path)
                                        throws CanNotCommunicateWithCcaServerException,
                                               CanNotSetPathToCcaComponentsException
Tell the python server the name of the folder that contains all of the cca components.

Parameters:
path - The name of the folder that contains all of the cca components.
Returns:
The path that the server echoed back to us.
Throws:
CanNotCommunicateWithCcaServerException
CanNotSetPathToCcaComponentsException

setPathsToCcaComponents

public java.lang.String[] setPathsToCcaComponents(java.lang.String[] paths)
                                           throws CanNotCommunicateWithCcaServerException,
                                                  CanNotSetPathToCcaComponentsException
Tell the python server the names of the folders that contains all of the cca components.

Parameters:
paths - The names of all the folders that contain cca components.
Returns:
The paths that the server echoed back to us.
Throws:
CanNotCommunicateWithCcaServerException
CanNotSetPathToCcaComponentsException

instantiateComponent

public CcaComponent instantiateComponent(java.lang.String componentClassName,
                                         java.lang.String componentInstanceName)
                                  throws CanNotCommunicateWithCcaServerException,
                                         CanNotInstantiateComponentException
Tell the python server to instantiate a cca component. The newly instantiated component appears in the arena. The arena is the cca's main workspace.

Parameters:
componentClassName - The class name of the component.
componentInstanceName - The instance name of the component.
Throws:
CanNotCommunicateWithCcaServerException
CanNotInstantiateComponentException

removeInstantiatedComponent

public void removeInstantiatedComponent(java.lang.String componentInstanceName)
                                 throws CanNotCommunicateWithCcaServerException,
                                        CanNotRemoveInstantiatedComponentException
Tell the python server to remove an instantiated cca component. The instantiated component is removed from the arena. The arena is the cca's main workspace.

Parameters:
componentClassName - The class name of the component.
componentInstanceName - The instance name of the component.
Throws:
CanNotCommunicateWithCcaServerException
CanNotRemoveInstantiatedComponentException

removeInstantiatedComponents

public CcaComponentInstanceNames removeInstantiatedComponents()
                                                       throws CanNotCommunicateWithCcaServerException,
                                                              CanNotRemoveInstantiatedComponentException
Tell the python server to remove all instantiated cca components. The instantiated components are removed from the arena. The arena is the cca's main workspace.

Returns:
The names of the removed components.
Throws:
CanNotCommunicateWithCcaServerException
CanNotRemoveInstantiatedComponentException

loadComponentClass

public java.lang.String loadComponentClass(java.lang.String componentClassName)
                                    throws CanNotCommunicateWithCcaServerException,
                                           CanNotLoadComponentException
Tell the python server to load a component class. The component is loaded into the palette.

Parameters:
componentClassName - The class name of the component.
Returns:
the xml string the cca server sent us in response to a loadComponentClass command.
Throws:
CanNotCommunicateWithServerException - Thrown if the server does not respond to the laod component command.
CanNotCommunicateWithCcaServerException
CanNotLoadComponentException

connectTwoPorts

public CcaConnectionBetweenTwoPorts connectTwoPorts(java.lang.String providesServiceComponentName,
                                                    java.lang.String providesServicePortName,
                                                    java.lang.String usesServiceComponentName,
                                                    java.lang.String usesServicePortName)
                                             throws CanNotCommunicateWithCcaServerException,
                                                    CanNotConnectTwoPortsException
Tell the python server to connect two ports; the two ports may be in different components. One of the ports must be a provider port; these ports provide a service. The other port must be a uses port; these ports consume a service.

Parameters:
providesServiceComponentName - The name of the component that contains the providers port.
providesServicePortName - The name of the providers port.
usesServiceComponentName - the name of the component that contains the consumer port.
usesServicePortName - The name of the consumer port.
Returns:
The cca connection that connects the two input ports.
Throws:
CanNotCommunicateWithCcaServerException
CanNotConnectTwoPortsException

setComponentProperty

public CcaComponentPropertyValue setComponentProperty(java.lang.String componentInstanceName,
                                                      java.lang.String propertyName,
                                                      java.lang.String propertyValue)
                                               throws CanNotCommunicateWithCcaServerException,
                                                      CanNotSetComponentPropertyException
Tell the python server to set the value of a component property.

Parameters:
componentInstanceName - The name of the component
propertyName - The name of the property
propertyValue - The value of the property
Throws:
CanNotCommunicateWithCcaServerException
CanNotSetComponentPropertyException

getComponentProperty

public CcaComponentPropertyValue getComponentProperty(java.lang.String componentInstanceName,
                                                      java.lang.String propertyName)
                                               throws CanNotCommunicateWithCcaServerException,
                                                      CanNotGetComponentPropertyException
Ask the python server to send us the value of component property.

Parameters:
componentInstanceName - The name of the component.
propertyName - The name of the property.
Throws:
CanNotCommunicateWithCcaServerException
CanNotGetComponentPropertyException

getComponentProperties

public CcaComponentPropertyValue[] getComponentProperties(java.lang.String componentInstanceName)
                                                   throws CanNotCommunicateWithCcaServerException,
                                                          CanNotGetComponentPropertyException
Ask the python server to send us the values of all the properties that belong to a component.

Parameters:
componentInstanceName - The name of the component.
Throws:
CanNotCommunicateWithCcaServerException
CanNotGetComponentPropertyException

launchGoOnOneComponent

public CcaCommandLaunchGoOnOneComponent launchGoOnOneComponent(java.lang.String componentInstanceName)
                                                        throws CanNotCommunicateWithCcaServerException,
                                                               CanNotLaunchGoCommandOnOneComponentException
Tell the python server to launch the run.

Parameters:
componentInstanceName - The name of the component that contains a GO port. The run is launched from this port.
the - go command that the server sent back to us
Throws:
CanNotCommunicateWithCcaServerException
CanNotLaunchGoCommandOnOneComponentException

launchGoOnOneComponent

public CcaCommandLaunchGoOnOneComponent launchGoOnOneComponent(java.lang.String componentInstanceName,
                                                               java.lang.String portInstanceName)
                                                        throws CanNotCommunicateWithCcaServerException,
                                                               CanNotLaunchGoCommandOnOneComponentException
Tell the python server to launch the run.

Parameters:
componentInstanceName - The name of the component that contains a GO port. The run is launched from this port.
portInstanceName - the name of the GO port.3
Returns:
Information on the component and the port that launched the go command.
Throws:
CanNotCommunicateWithCcaServerException
CanNotLaunchGoCommandOnOneComponentException

launchGoOnAllComponents

public void launchGoOnAllComponents()
                             throws CanNotCommunicateWithCcaServerException,
                                    CanNotLaunchGoCommandOnAllComponentsException
Tell the python server to launch the run.

Throws:
CanNotCommunicateWithCcaServerException
CanNotLaunchGoCommandOnAllComponentsException

disconnectTwoPorts

public CcaConnectionBetweenTwoPorts disconnectTwoPorts(java.lang.String providesServiceComponentName,
                                                       java.lang.String providesServicePortName,
                                                       java.lang.String usesServiceComponentName,
                                                       java.lang.String usesServicePortName)
                                                throws CanNotCommunicateWithCcaServerException,
                                                       CanNotDisconnectTwoPortsException
Tell the python server to disconnect two ports; the two ports may be in different components. One of the ports must be a provider port; these ports provide a service. The other port must be a uses port; these ports consume a service.

Parameters:
providesServiceComponentName - The name of the component that contains the providers port.
providesServicePortName - The name of the providers port.
usesServiceComponentName - the name of the component that contains the consumer port.
usesServicePortName - The name of the consumer port.
Returns:
The cca connection that connects the two input ports.
Throws:
CanNotCommunicateWithCcaServerException
CanNotDisconnectTwoPortsException

closeComponent

public java.lang.String closeComponent(java.lang.String componentInstanceName)
                                throws CanNotCommunicateWithCcaServerException,
                                       CanNotCloseComponentException
Tell the python server to close the cca component.

Parameters:
componentInstanceName - The name of the component.
Returns:
the name of the component that the server closed.
Throws:
CanNotCommunicateWithCcaServerException
CanNotCloseComponentException

getComponentClassNames

public java.lang.String[] getComponentClassNames()
                                          throws CanNotCommunicateWithCcaServerException
Tell the python server to send back the names of all the classes that are loaded in the palette.

Throws:
CanNotCommunicateWithCcaServerException

getComponentInstances

public CcaComponent[] getComponentInstances()
                                     throws CanNotCommunicateWithCcaServerException
Tell the python server to send back the names of all the classes that are instantiated in the arena.

Throws:
CanNotCommunicateWithCcaServerException

getConnections

public CcaConnectionBetweenTwoPorts[] getConnections()
                                              throws CanNotCommunicateWithCcaServerException
Tell the python server to send back info on every connection.

Returns:
Every connection that is between 2 ports
Throws:
CanNotCommunicateWithCcaServerException

setPortParameter

public CcaPortParameterValue setPortParameter(java.lang.String componentInstanceName,
                                              java.lang.String portInstanceName,
                                              java.lang.String fieldName,
                                              java.lang.String fieldValue)
                                       throws CanNotCommunicateWithCcaServerException,
                                              CanNotSetPortParameterException
Throws:
CanNotCommunicateWithCcaServerException
CanNotSetPortParameterException

getPortParameters

public java.lang.String getPortParameters(java.lang.String componentInstanceName,
                                          java.lang.String portInstanceName)
                                   throws CanNotCommunicateWithCcaServerException,
                                          CanNotGetPortParametersException
Throws:
CanNotCommunicateWithCcaServerException
CanNotGetPortParametersException

closeSessionWithCcaServer

public void closeSessionWithCcaServer()
Close out the session with the python server.


printComponent

protected void printComponent(CcaComponent component)
Print useful information on a component.

Parameters:
component - Information about this component will be printed on the screen.

printConnection

protected void printConnection(CcaConnectionBetweenTwoPorts connection)
Print useful information on a connection.

Parameters:
connection - Information about this connection will be printed on the screen.

printDisconnection

protected void printDisconnection(CcaConnectionBetweenTwoPorts connection)
Print useful information on a disconnection.

Parameters:
connection - Information about this connection will be printed on the screen.

resultSet

protected void resultSet(java.lang.String resultSet)
Parse and display result set.

Whenever we send a query to the cca server, the cca server will send us back a result set.

Parameters:
resultSet - The result set that is to be parsed and displayed.

addPythonControllerListener

public void addPythonControllerListener(PythonControllerListener listener)

removePythonControllerListener

public void removePythonControllerListener(PythonControllerListener listener)

broadcastFixSharedLibrary

protected void broadcastFixSharedLibrary()

broadcastFixSharedLibrary

protected void broadcastFixSharedLibrary(FixSharedLibraryEvent event)

broadcastOpenCcaFramework

protected void broadcastOpenCcaFramework()

broadcastOpenCcaFramework

protected void broadcastOpenCcaFramework(OpenCcaFrameworkEvent event)

broadcastSetDebugFlag

protected void broadcastSetDebugFlag(boolean debug)

broadcastSetDebugFlag

protected void broadcastSetDebugFlag(SetDebugFlagEvent event)

broadcastSetPathToCcaComponents

protected void broadcastSetPathToCcaComponents(java.lang.String path)

broadcastSetPathToCcaComponents

protected void broadcastSetPathToCcaComponents(SetPathToCcaComponentsEvent event)

broadcastSetPathsToCcaComponents

protected void broadcastSetPathsToCcaComponents(java.lang.String[] paths)

broadcastSetPathsToCcaComponents

protected void broadcastSetPathsToCcaComponents(SetPathsToCcaComponentsEvent event)

broadcastLoadComponent

protected void broadcastLoadComponent(java.lang.String componentClassName)

broadcastLoadComponent

protected void broadcastLoadComponent(LoadComponentEvent event)

broadcastComponentClassNames

protected void broadcastComponentClassNames(java.lang.String[] componentClassNames)

broadcastComponentClassNames

protected void broadcastComponentClassNames(ComponentClassNamesEvent event)

broadcastInstantiateComponent

protected void broadcastInstantiateComponent(CcaComponent ccaComponent)

broadcastInstantiateComponent

protected void broadcastInstantiateComponent(InstantiateComponentEvent event)

broadcastRemoveInstantiatedComponent

protected void broadcastRemoveInstantiatedComponent(java.lang.String componentInstanceName)

broadcastRemoveInstantiatedComponent

protected void broadcastRemoveInstantiatedComponent(RemoveInstantiatedComponentEvent event)

broadcastRemoveInstantiatedComponents

protected void broadcastRemoveInstantiatedComponents(CcaComponentInstanceNames componentInstanceNames)

broadcastRemoveInstantiatedComponents

protected void broadcastRemoveInstantiatedComponents(RemoveInstantiatedComponentsEvent event)

broadcastComponentInstances

protected void broadcastComponentInstances(CcaComponent[] componentInstances)

broadcastComponentInstances

protected void broadcastComponentInstances(ComponentInstancesEvent event)

broadcastConnectTwoPorts

protected void broadcastConnectTwoPorts(CcaConnectionBetweenTwoPorts ccaConnection)

broadcastConnectTwoPorts

protected void broadcastConnectTwoPorts(CcaConnectTwoPortsEvent event)

broadcastCcaConnectionsBetweenTwoPorts

protected void broadcastCcaConnectionsBetweenTwoPorts(CcaConnectionBetweenTwoPorts[] ccaConnections)

broadcastCcaConnectionsBetweenTwoPorts

protected void broadcastCcaConnectionsBetweenTwoPorts(CcaConnectionsBetweenTwoPortsEvent event)

broadcastLaunchGoOnOneComponent

protected void broadcastLaunchGoOnOneComponent(CcaCommandLaunchGoOnOneComponent commandGo)

broadcastLaunchGoOnOneComponent

protected void broadcastLaunchGoOnOneComponent(LaunchGoOnOneComponentEvent event)

broadcastLaunchGoOnAllComponents

protected void broadcastLaunchGoOnAllComponents()

broadcastLaunchGoOnAllComponents

protected void broadcastLaunchGoOnAllComponents(LaunchGoOnAllComponentsEvent event)

broadcastDisconnectTwoPorts

protected void broadcastDisconnectTwoPorts(CcaConnectionBetweenTwoPorts ccaConnection)

broadcastDisconnectTwoPorts

protected void broadcastDisconnectTwoPorts(CcaDisconnectTwoPortsEvent event)

broadcastCloseComponent

protected void broadcastCloseComponent(java.lang.String componentInstanceName)

broadcastCloseComponent

protected void broadcastCloseComponent(CloseComponentEvent event)

broadcastPortParameters

protected void broadcastPortParameters(java.lang.String xmlPortParameters)

broadcastPortParameters

protected void broadcastPortParameters(CcaPortParametersEvent event)

broadcastSetPortParameter

protected void broadcastSetPortParameter(CcaPortParameterValue ccaPortParameterValue)

broadcastSetPortParameter

protected void broadcastSetPortParameter(CcaPortParameterSetValueEvent event)

broadcastSetComponentProperty

protected void broadcastSetComponentProperty(CcaComponentPropertyValue ccaComponentPropertyValue)

broadcastSetComponentProperty

protected void broadcastSetComponentProperty(CcaComponentPropertySetValueEvent event)

broadcastComponentProperty

protected void broadcastComponentProperty(CcaComponentPropertyValue ccaComponentPropertyValue)

broadcastComponentProperty

protected void broadcastComponentProperty(CcaComponentPropertyValueEvent event)

broadcastComponentProperties

protected void broadcastComponentProperties(CcaComponentPropertyValue[] ccaComponentPropertyValues)

broadcastComponentProperties

protected void broadcastComponentProperties(CcaComponentPropertyValuesEvent event)

test

public void test(ClientSocket clientSocket)
test the Framework


main

public static void main(java.lang.String[] args)