|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
MessageQueueInterface is the remote interface of a Jini node.
Methods declared on this define the actions that can be remotely
executed on a Jini node. A Scorej implementation of this interface
is MessageQueueImpl.
| Method Summary | |
void |
changeFilters(java.util.Vector newFilters,
Node node)
Change the filters for the specified node to the new set. |
void |
deliverMessage(Signal msg)
Deliver the message to the remote Jini node implementing this interface. |
java.lang.String |
getCurrentScenario()
Get the name of the current scenario as a String. |
java.lang.String[] |
getScenarioNames()
Gets an array of names of scenarios loaded at the remote node. |
int |
getStatus()
Get the current status of the scenario at the remote node. |
double |
getTime()
Get the current time at the remote node as a double value. |
void |
pauseNode()
Pause the current ScoreJ Scenario at the remote node. |
void |
registerFilter(Filter filter,
Node node)
Register a filter for the specified node. |
void |
setCurrentScenario(java.lang.String scenName)
Sets the current scenario at the remote node. |
void |
startNode()
Initialize the current ScoreJ Scenario at the remote node. |
void |
stopNode()
Stop the current ScoreJ Scenario at the remote node. |
| Method Detail |
public void deliverMessage(Signal msg)
throws java.rmi.RemoteException
msg - the msg (of type Signal) to be delivered
to the remote Jini node.
java.rmi.RemoteException
public void startNode()
throws java.lang.Exception
MessageQueueImpl implementation of
this method also re-initializes the Comm Protocol (in this case Jini).
java.lang.Exception
public void pauseNode()
throws java.rmi.RemoteException
java.rmi.RemoteException
public void stopNode()
throws java.rmi.RemoteException
MessageQueueImpl implementation of
this method also stops the Comm Protocol (in this case Jini).
java.rmi.RemoteException
public java.lang.String[] getScenarioNames()
throws java.rmi.RemoteException
java.rmi.RemoteException
public void setCurrentScenario(java.lang.String scenName)
throws java.rmi.RemoteException
scenName - the name of the scenario to be set. This method
assumes that a scenario by this name has already been loaded
in the remote node.
java.rmi.RemoteException
public java.lang.String getCurrentScenario()
throws java.rmi.RemoteException
java.rmi.RemoteException
public double getTime()
throws java.rmi.RemoteException
java.rmi.RemoteException
public int getStatus()
throws java.rmi.RemoteException
java.rmi.RemoteException
public void registerFilter(Filter filter,
Node node)
throws java.rmi.RemoteException
java.rmi.RemoteException
public void changeFilters(java.util.Vector newFilters,
Node node)
throws java.rmi.RemoteException
java.rmi.RemoteException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||