com.goldenhammer.node
Class SimulationNode_Stub

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteStub
          extended bycom.goldenhammer.node.SimulationNode_Stub
All Implemented Interfaces:
Node, java.rmi.Remote, java.io.Serializable

public final class SimulationNode_Stub
extends java.rmi.server.RemoteStub
implements Node, java.rmi.Remote

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
SimulationNode_Stub(java.rmi.server.RemoteRef ref)
           
 
Method Summary
 void addModality(Modality $param_Modality_1)
           
 void endSimulation()
          This method is similar to a finalize in taht it will do whatever is necissary to 'clean up' after the simulation.
 java.util.Collection getStatus()
          Gets from the node an ArrayList of ModalityStatus objects that contain information about the current status of each modality on this node
 ModalityStatsSummary getSummaryForNode(java.lang.String $param_String_1)
           
 java.lang.String getTestID()
           
 void markCompleted(SimulationThread $param_SimulationThread_1)
          notify the node that the modality is finished
 void nuke()
           
 void startSimulation(java.lang.String $param_String_1)
          starts the simulation.
 void stopSimulation()
          stops this node (kills every modality thread)
 
Methods inherited from class java.rmi.server.RemoteStub
setRef
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimulationNode_Stub

public SimulationNode_Stub(java.rmi.server.RemoteRef ref)
Method Detail

addModality

public void addModality(Modality $param_Modality_1)
                 throws java.rmi.RemoteException
Specified by:
addModality in interface Node
Parameters:
$param_Modality_1 -
Throws:
java.rmi.RemoteException

endSimulation

public void endSimulation()
                   throws java.rmi.RemoteException
Description copied from interface: Node
This method is similar to a finalize in taht it will do whatever is necissary to 'clean up' after the simulation. It is called by the controller AFTER the controller has determined all modalities/nodes haves completed. **NOTE** this is different than stopSimulation which stops execution

Specified by:
endSimulation in interface Node
Throws:
java.rmi.RemoteException

getStatus

public java.util.Collection getStatus()
                               throws java.rmi.RemoteException
Description copied from interface: Node
Gets from the node an ArrayList of ModalityStatus objects that contain information about the current status of each modality on this node

Specified by:
getStatus in interface Node
Returns:
An ArrayList of ModalityStatus objects
Throws:
java.rmi.RemoteException

getSummaryForNode

public ModalityStatsSummary getSummaryForNode(java.lang.String $param_String_1)
                                       throws java.rmi.RemoteException
Specified by:
getSummaryForNode in interface Node
Parameters:
$param_String_1 -
Returns:
Throws:
java.rmi.RemoteException

getTestID

public java.lang.String getTestID()
                           throws java.rmi.RemoteException
Specified by:
getTestID in interface Node
Returns:
Throws:
java.rmi.RemoteException

markCompleted

public void markCompleted(SimulationThread $param_SimulationThread_1)
                   throws java.rmi.RemoteException
Description copied from interface: Node
notify the node that the modality is finished

Specified by:
markCompleted in interface Node
Parameters:
$param_SimulationThread_1 -
Throws:
java.rmi.RemoteException

nuke

public void nuke()
          throws java.rmi.RemoteException
Specified by:
nuke in interface Node
Throws:
java.rmi.RemoteException

startSimulation

public void startSimulation(java.lang.String $param_String_1)
                     throws java.rmi.RemoteException
Description copied from interface: Node
starts the simulation. this is called by the controller machine. Before this method is called the node should have created at least one modality for it to run

Specified by:
startSimulation in interface Node
Parameters:
$param_String_1 -
Throws:
java.rmi.RemoteException

stopSimulation

public void stopSimulation()
                    throws java.rmi.RemoteException
Description copied from interface: Node
stops this node (kills every modality thread)

Specified by:
stopSimulation in interface Node
Throws:
java.rmi.RemoteException