|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.sandia.ccaffeine.dc.user_iface.MVC.ControllerPython
public class ControllerPython
Constructor Summary | |
---|---|
ControllerPython(PythonStub pythonStub)
Create an MVC controller. |
Method Summary | |
---|---|
void |
addAccessGuiListener(ControllerListener listener)
|
void |
addControllerListener(ControllerListener listener)
|
protected void |
broadcastAddProvidesPorts(AddProvidesPortsEvent event)
Add uses ports to a component. |
protected void |
broadcastAddProvidesPorts(java.lang.String componentInstanceName,
java.util.Vector classNameAndInstanceNameOfAllPorts)
Add provides ports to a component. |
protected void |
broadcastAddUsesPorts(AddUsesPortsEvent event)
Add uses ports to a component. |
protected void |
broadcastAddUsesPorts(java.lang.String componentInstanceName,
java.util.Vector classNameAndInstanceNameOfAllPorts)
Add uses ports to a component. |
protected void |
broadcastCcaPortParameterCurrentValue(CcaPortParameterCurrentValue x)
Tell the GUI to display the current value of a specific port parameter |
protected void |
broadcastCcaPortParameterCurrentValue(ParamCurrentEvent event)
Tell the GUI to display the current value of a specific port parameter |
protected void |
broadcastCcaPortParameterDefaultValue(CcaPortParameterDefaultValue x)
Tell the GUI the default value of a specific port parameter. |
protected void |
broadcastCcaPortParameterDefaultValue(ParamDefaultEvent event)
Tell the GUI the default value of a specific port parameter. |
protected void |
broadcastCcaPortParameterDialog(CcaPortParameterDialogBox x)
Tell the GUI to create an empty dialog box. |
protected void |
broadcastCcaPortParameterDialog(ParamDialogEvent event)
Tell the GUI to create an empty dialog box. |
protected void |
broadcastCcaPortParameterEndDialog(CcaPortParameterEndDialogBox x)
Tell the GUI that the cca server is finished creating all of the parameters that belong to a port. |
protected void |
broadcastCcaPortParameterEndDialog(ParamEndDialogEvent event)
Tell the GUI that the cca server is finished creating all of the parameters that belong to a port. |
protected void |
broadcastCcaPortParameterHelp(CcaPortParameterHelp x)
Tell the GUI to construct a tooltip for a port parameter. |
protected void |
broadcastCcaPortParameterHelp(ParamHelpEvent event)
Tell the GUI to construct a tooltip for a port parameter. |
protected void |
broadcastCcaPortParameterNewField(CcaPortParameterNewField x)
Tell the GUI to create a field to hold a new port parameter. |
protected void |
broadcastCcaPortParameterNewField(ParamFieldEvent event)
Tell the GUI to create a field to hold a new port parameter. |
protected void |
broadcastCcaPortParameterPrompt(CcaPortParameterPrompt x)
Tell the GUI the value of the prompt of a specific port parameter. |
protected void |
broadcastCcaPortParameterPrompt(ParamPromptEvent event)
Tell the GUI the value of the prompt of a specific port parameter. |
protected void |
broadcastCcaPortParameterRangeOfValues(CcaPortParameterRangeOfValues x)
Tell the GUI the lower and upper bounds that the value of a specific port parameter is allowed to have. |
protected void |
broadcastCcaPortParameterRangeOfValues(ParamNumberRangeEvent event)
Tell the GUI the lower and upper bounds that the value of a specific port parameter is allowed to have. |
protected void |
broadcastCcaPortParameterTab(CcaPortParameterTab x)
Tell the GUI to create a tabbed pane. |
protected void |
broadcastCcaPortParameterTab(ParamTabEvent event)
Tell the GUI to create a tabbed pane. |
protected void |
broadcastComponentPropertyValue(CcaComponentPropertyValue ccaComponentPropertyValue)
Tell the GUI to write the value of the component property to stdout. |
protected void |
broadcastComponentPropertyValue(GetComponentPropertyEvent event)
Tell the GUI to write, to stdout, the current value of a specific component property. |
protected void |
broadcastComponentPropertyValues(CcaComponentPropertyValue[] ccaComponentPropertyValues)
Tell the GUI to display information on several properties. |
protected void |
broadcastConnection(ConnectEvent event)
Connect two components. |
protected void |
broadcastConnection(java.lang.String sourceComponentName,
java.lang.String sourcePortName,
java.lang.String targetComponentName,
java.lang.String targetPortName)
Connect two components by drawing a line from a port on one of the components to a port on the other component. |
protected void |
broadcastDisconnectTwoPorts(CcaDisconnectTwoPortsEvent event)
Disconnect two ports. |
protected void |
broadcastDisconnectTwoPorts(DisconnectEvent event)
Disconnect two ports. |
protected void |
broadcastInstantiateComponentInArena(InstantiateEvent event)
Add a component instance to the arena. |
protected void |
broadcastInstantiateComponentInArena(java.lang.String componentClassName,
java.lang.String componentInstanceName)
Add a component instance to the arena. |
protected void |
broadcastMessage(MessageEvent event)
Tell the GUI to write a message to stdout. |
protected void |
broadcastMessage(java.lang.String message)
Tell the GUI to write a message to stdout. |
protected void |
broadcastRemovedInstantiateComponentFromArena(RemoveEvent event)
Remove an instantiated component from the arena. |
protected void |
broadcastRemovedInstantiateComponentFromArena(java.lang.String componentInstanceName)
Remove an instantiated component from the arena. |
protected void |
broadcastSetComponentClass(AddComponentClassEvent event)
Add a class to the palette. |
protected void |
broadcastSetComponentClass(java.lang.String componentClassName)
Add a component class to the palette. |
protected void |
broadcastSetComponentPropertyValue(CcaComponentPropertyValue ccaComponentPropertyValue)
Tell the GUI the value of a component property. |
protected void |
broadcastSetComponentPropertyValue(SetComponentPropertyEvent event)
Tell the GUI the value of a component property. |
void |
closeCcaFramework(CloseCcaFrameworkEvent event)
The cca framework is closed |
void |
closeComponent(CloseComponentEvent event)
The cca server has closed a component. |
void |
connectTwoPorts(CcaConnectTwoPortsEvent event)
The cca server is connecting two ports. |
void |
disconnectTwoPorts(CcaDisconnectTwoPortsEvent event)
The cca server is disconnecting two ports. |
void |
fixSharedLibrary(FixSharedLibraryEvent event)
The cca's python server has fixed the shared library problem. |
void |
instantiateComponent(InstantiateComponentEvent event)
the cca server is sending this client one instantiated component. |
void |
launchGoOnAllComponents(LaunchGoOnAllComponentsEvent event)
The cca server is launching the go command on all components |
void |
launchGoOnOneComponent(LaunchGoOnOneComponentEvent event)
The cca server is launching the go command from one component. |
void |
loadComponent(LoadComponentEvent event)
The cca's python server has loaded a component. |
void |
openCcaFramework(OpenCcaFrameworkEvent event)
The cca's python server has opened the cca framework. |
void |
receivedCcaConnectionsBetweenTwoPorts(CcaConnectionsBetweenTwoPortsEvent event)
The cca server is sending us info on all connections that are between two ports. |
void |
receivedComponentClassNames(ComponentClassNamesEvent event)
the cca server is sending this client the class names of some components. |
void |
receivedComponentInstances(ComponentInstancesEvent event)
The cca server is sending this client some component instances. |
void |
receivedComponentPropertyValue(CcaComponentPropertyValueEvent event)
The server wants the GUI to write the current value of a component property to stdout. |
void |
receivedComponentPropertyValues(CcaComponentPropertyValuesEvent event)
The server wants the GUI to write the values of all component properties to stdout. |
void |
receivedPortParameters(CcaPortParametersEvent event)
The cca server is sending us all of the parameters for a port. |
void |
removeAccessGuiListener(ControllerListener listener)
|
void |
removeControllerListener(ControllerListener listener)
|
void |
removeInstantiatedComponent(RemoveInstantiatedComponentEvent event)
The cca server is removing an instantiated component. |
void |
removeInstantiatedComponents(RemoveInstantiatedComponentsEvent event)
The cca server is removing all instantiated components. |
void |
setComponentPropertyValue(CcaComponentPropertySetValueEvent event)
The cca server has set the value of a component property. |
void |
setDebugFlag(SetDebugFlagEvent event)
The serer has set the value of the debug flag. |
void |
setPathsToCcaComponents(SetPathsToCcaComponentsEvent event)
The cca's python server has set the paths to the cca components. |
void |
setPathToCcaComponents(SetPathToCcaComponentsEvent event)
The cca's python server has set the path to the cca components. |
void |
setPortParameterValue(CcaPortParameterSetValueEvent event)
The server has set the value of a port parameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ControllerPython(PythonStub pythonStub)
pythonStub
- The stub for a python clientMethod Detail |
---|
public void openCcaFramework(OpenCcaFrameworkEvent event)
openCcaFramework
in interface PythonControllerListener
event
- The event that is generated whenever the python
server is finished opening the cca framework.public void setPathToCcaComponents(SetPathToCcaComponentsEvent event)
setPathToCcaComponents
in interface PythonControllerListener
event
- The event that is generated whenever the python
server is finished setting the path to the cca components.public void loadComponent(LoadComponentEvent event)
loadComponent
in interface PythonControllerListener
event
- The event that is generated whenever the python
server is finished loading a component.public void instantiateComponent(InstantiateComponentEvent event)
instantiateComponent
in interface PythonControllerListener
event
- The event that is generated whenever the python
server instantiates a component.public void removeInstantiatedComponent(RemoveInstantiatedComponentEvent event)
removeInstantiatedComponent
in interface PythonControllerListener
event
- The event that is generated whenever the python
server removes an instantiated component.public void removeInstantiatedComponents(RemoveInstantiatedComponentsEvent event)
removeInstantiatedComponents
in interface PythonControllerListener
event
- The event that is generated whenever the python
server removes an instantiated component.public void connectTwoPorts(CcaConnectTwoPortsEvent event)
connectTwoPorts
in interface PythonControllerListener
public void disconnectTwoPorts(CcaDisconnectTwoPortsEvent event)
disconnectTwoPorts
in interface PythonControllerListener
public void receivedPortParameters(CcaPortParametersEvent event)
receivedPortParameters
in interface PythonControllerListener
public void setPortParameterValue(CcaPortParameterSetValueEvent event)
setPortParameterValue
in interface PythonControllerListener
public void receivedComponentPropertyValue(CcaComponentPropertyValueEvent event)
receivedComponentPropertyValue
in interface PythonControllerListener
event
- The event that is generated whenever
the cca server sends the value of component property.public void receivedComponentPropertyValues(CcaComponentPropertyValuesEvent event)
receivedComponentPropertyValues
in interface PythonControllerListener
event
- The event that is generated whenever
the cca server sends the values of one or more component properties.public void setComponentPropertyValue(CcaComponentPropertySetValueEvent event)
setComponentPropertyValue
in interface PythonControllerListener
event
- The event that is generated whenever
the cca server sets the value of component property.public void setDebugFlag(SetDebugFlagEvent event)
setDebugFlag
in interface PythonControllerListener
public void fixSharedLibrary(FixSharedLibraryEvent event)
fixSharedLibrary
in interface PythonControllerListener
event
- The event that is generated whenever the python
server is finished fixing the shared library problem.public void setPathsToCcaComponents(SetPathsToCcaComponentsEvent event)
setPathsToCcaComponents
in interface PythonControllerListener
event
- The event that is generated whenever the python
server is finished setting the paths to the cca components.public void receivedComponentClassNames(ComponentClassNamesEvent event)
receivedComponentClassNames
in interface PythonControllerListener
event
- The event that is generated whenever the python
server sends the class names of components.public void receivedComponentInstances(ComponentInstancesEvent event)
receivedComponentInstances
in interface PythonControllerListener
public void receivedCcaConnectionsBetweenTwoPorts(CcaConnectionsBetweenTwoPortsEvent event)
receivedCcaConnectionsBetweenTwoPorts
in interface PythonControllerListener
public void launchGoOnOneComponent(LaunchGoOnOneComponentEvent event)
launchGoOnOneComponent
in interface PythonControllerListener
public void launchGoOnAllComponents(LaunchGoOnAllComponentsEvent event)
launchGoOnAllComponents
in interface PythonControllerListener
public void closeComponent(CloseComponentEvent event)
closeComponent
in interface PythonControllerListener
public void closeCcaFramework(CloseCcaFrameworkEvent event)
closeCcaFramework
in interface PythonControllerListener
protected void broadcastConnection(java.lang.String sourceComponentName, java.lang.String sourcePortName, java.lang.String targetComponentName, java.lang.String targetPortName)
sourceComponent
- The source componentsourcePort
- The source porttargetComponent
- The target componenttargetPort
- The target portprotected void broadcastConnection(ConnectEvent event)
event
- The event that is generated
whenever uses ports are to be added to a component.protected void broadcastAddProvidesPorts(java.lang.String componentInstanceName, java.util.Vector classNameAndInstanceNameOfAllPorts)
componentInstanceName
- The name of the component
that is getting the new ports.classNameAndNameOfAllPorts.
- A vector that contains
the (className,instanceName) pair of every new port.protected void broadcastAddUsesPorts(java.lang.String componentInstanceName, java.util.Vector classNameAndInstanceNameOfAllPorts)
componentInstanceName
- The name of the component
that is getting the new ports.classNameAndNameOfAllPorts.
- A vector that contains
the (className,instanceName) pair of every new port.protected void broadcastAddProvidesPorts(AddProvidesPortsEvent event)
event
- The event that is generated
whenever uses ports are to be added to a component.protected void broadcastAddUsesPorts(AddUsesPortsEvent event)
event
- The event that is generated
whenever uses ports are to be added to a component.protected void broadcastInstantiateComponentInArena(java.lang.String componentClassName, java.lang.String componentInstanceName)
componentIntanceName
- The name
of the component that will be placed
on the arena.protected void broadcastInstantiateComponentInArena(InstantiateEvent event)
event
- The event that is generated whenever
a component is instantiated.protected void broadcastRemovedInstantiateComponentFromArena(java.lang.String componentInstanceName)
componentIntanceName
- The name
of the component that will be removed from
the arena.protected void broadcastRemovedInstantiateComponentFromArena(RemoveEvent event)
event
- The event that is generated whenever
an instantiated component is removed.protected void broadcastSetComponentClass(java.lang.String componentClassName)
componentClassName
- The name
of the class that will be placed
on the palette.protected void broadcastSetComponentClass(AddComponentClassEvent event)
event
- The event that is generated
whenever a class is to be added to the palette.protected void broadcastDisconnectTwoPorts(CcaDisconnectTwoPortsEvent event)
sourceComponentName
- the component where
the disconnect originated from.sourcePortName
- the port where the
disconnect originated from.targetComponentName
- the component that is
at the other end of the connection.targetPortName
- the port that is
at the other end of the connectionprotected void broadcastDisconnectTwoPorts(DisconnectEvent event)
DisconnectEvent
- The event that is generated
whenever a connection is to be broken.protected void broadcastCcaPortParameterCurrentValue(CcaPortParameterCurrentValue x)
x
- Contains information on the port parameter.protected void broadcastCcaPortParameterCurrentValue(ParamCurrentEvent event)
event
- The event that is generated whenever the cca server
wants the GUI to display the current value of a port parameter.protected void broadcastCcaPortParameterDefaultValue(CcaPortParameterDefaultValue x)
x
- Contains information on the port parameter.protected void broadcastCcaPortParameterDefaultValue(ParamDefaultEvent event)
event
- The event that is generated whenever the cca server
generates the default value of a port parameter.protected void broadcastCcaPortParameterTab(CcaPortParameterTab x)
x
- Contains information about the tabbed pane.protected void broadcastCcaPortParameterTab(ParamTabEvent event)
event
- The event that is generated whenever the cca server
wants the GUI to create a tabbed pane.protected void broadcastCcaPortParameterRangeOfValues(CcaPortParameterRangeOfValues x)
x
- Contains information about the parameter.protected void broadcastCcaPortParameterRangeOfValues(ParamNumberRangeEvent event)
event
- The event that is generated whenever the cca server
determines the lower and upper bounds of a port parameter.protected void broadcastCcaPortParameterNewField(CcaPortParameterNewField x)
x
- Contains information on the parameter.protected void broadcastCcaPortParameterNewField(ParamFieldEvent event)
event
- The event that is created whenever the cca server
creates a new port parameter.protected void broadcastCcaPortParameterPrompt(CcaPortParameterPrompt x)
x
- Contains information on the parameter.protected void broadcastCcaPortParameterPrompt(ParamPromptEvent event)
event
- The event that is generated whenever the cca server
creates a prompt for a port parameter.protected void broadcastCcaPortParameterEndDialog(CcaPortParameterEndDialogBox x)
x
- Information on the port parameters.protected void broadcastCcaPortParameterEndDialog(ParamEndDialogEvent event)
event
- The event that is generated whenever the cca server
is finished creating all of the parameters of a specific port.protected void broadcastCcaPortParameterDialog(CcaPortParameterDialogBox x)
x
- Information about the dialog boxprotected void broadcastCcaPortParameterDialog(ParamDialogEvent event)
event
- The event that is created whenever the cca server
wants the GUI to display the values of all the paramters
of a specific port.protected void broadcastCcaPortParameterHelp(CcaPortParameterHelp x)
x
- Contains information about the parameter.protected void broadcastCcaPortParameterHelp(ParamHelpEvent event)
event
- The event that is created whenever the cca server
constructs a helpful message for a port parameter.protected void broadcastMessage(java.lang.String message)
message
- The contents of the message.protected void broadcastMessage(MessageEvent event)
event
- The event that is generated whenever the
cca server wants the GUI to write a message to stdout.protected void broadcastSetComponentPropertyValue(CcaComponentPropertyValue ccaComponentPropertyValue)
ccaComponentPropertyValue
- Contains
information on a component property.protected void broadcastSetComponentPropertyValue(SetComponentPropertyEvent event)
event
- The event that is generated whenever the cca server
constructs a new component property or whenever the server changes
the value of the component property.protected void broadcastComponentPropertyValue(CcaComponentPropertyValue ccaComponentPropertyValue)
ccaComponentPropertyValue
- Contains the
name of the property that we are interested in.protected void broadcastComponentPropertyValue(GetComponentPropertyEvent event)
event
- The event that is generated whenever the cca
server wants the GUI to display the current value of a
component property.protected void broadcastComponentPropertyValues(CcaComponentPropertyValue[] ccaComponentPropertyValues)
ccaComponentPropertyValues
- Contains the names
of several properties.public void addControllerListener(ControllerListener listener)
public void removeControllerListener(ControllerListener listener)
public void addAccessGuiListener(ControllerListener listener)
public void removeAccessGuiListener(ControllerListener listener)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |