PaP
Interface ControlInterface
- All Superinterfaces:
- java.rmi.Remote, java.io.Serializable
- All Known Implementing Classes:
- Actor, BaseFrame, RMIServer, Director1
- public interface ControlInterface
- extends java.rmi.Remote, java.io.Serializable
ControlInterface is a small interface with one method - control(). This
method a common entry point used to invoke the actor's functionality. All
actors implement this interface through the abstract superclass Actor.
- See Also:
Actor
Method Summary |
RequestResult |
control(java.lang.String command,
java.lang.String[] args)
Common entry point to invoke an actor's functionality. |
control
public RequestResult control(java.lang.String command,
java.lang.String[] args)
throws java.lang.Exception
- Common entry point to invoke an actor's functionality. It is up to the
actor to decide which operations to perform depending on the specified
command.
- Parameters:
command
- Name of the command to perform.args
- Additional arguments for the specified command.- Returns:
- RequestResult indicating wether the command was completed
successfully or not.
- Throws:
Exception.
-