Package adams.scripting.engine
Interface RemoteCommandHandler
-
- All Known Implementing Classes:
AbstractRemoteCommandHandler
,DefaultMainScriptingEngine.RemoteCommandGrabber
,DefaultRemoteCommandHandler
,ForwardingScriptingEngine.RemoteCommandGrabber
,RemoteCommandJobRunner.RemoteCommandGrabber
public interface RemoteCommandHandler
Interface for classes that handle remote commands within a scripting engine.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RemoteScriptingEngine
getOwner()
Returns the owning scripting engine.String
handle(RemoteCommand cmd, RemoteCommandProcessor processor)
Handles the command.void
setOwner(RemoteScriptingEngine value)
Sets the owning scripting engine.
-
-
-
Method Detail
-
setOwner
void setOwner(RemoteScriptingEngine value)
Sets the owning scripting engine.- Parameters:
value
- the owner
-
getOwner
RemoteScriptingEngine getOwner()
Returns the owning scripting engine.- Returns:
- the owner, null if none set
-
handle
String handle(RemoteCommand cmd, RemoteCommandProcessor processor)
Handles the command.- Parameters:
cmd
- the command to handleprocessor
- the processor for formatting/parsing- Returns:
- null if successful, otherwise error message
-
-