Package adams.scripting.engine
Class ForwardingScriptingEngine.RemoteCommandGrabber
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.scripting.engine.AbstractRemoteCommandHandler
-
- adams.scripting.engine.ForwardingScriptingEngine.RemoteCommandGrabber
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,SizeOfHandler
,RemoteCommandHandler
,Serializable
- Enclosing class:
- ForwardingScriptingEngine
public static class ForwardingScriptingEngine.RemoteCommandGrabber extends AbstractRemoteCommandHandler
Simply used to grab the remote commands from the base scripting engine.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ForwardingScriptingEngine
m_Forwarder
the forwarding scripting engine.-
Fields inherited from class adams.scripting.engine.AbstractRemoteCommandHandler
m_Owner
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description RemoteCommandGrabber()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
check(RemoteCommand cmd)
Hook method for checks before handling the command.protected String
doHandle(RemoteCommand cmd, RemoteCommandProcessor processor)
Handles the command.ForwardingScriptingEngine
getForwarder()
Returns the forwarding scripting engine.String
globalInfo()
Returns a string describing the object.void
setForwarder(ForwardingScriptingEngine value)
Sets the forwarding scripting engine.-
Methods inherited from class adams.scripting.engine.AbstractRemoteCommandHandler
getOwner, handle, setOwner
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, defineOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_Forwarder
protected ForwardingScriptingEngine m_Forwarder
the forwarding scripting engine.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
setForwarder
public void setForwarder(ForwardingScriptingEngine value)
Sets the forwarding scripting engine.- Parameters:
value
- the scripting engine
-
getForwarder
public ForwardingScriptingEngine getForwarder()
Returns the forwarding scripting engine.- Returns:
- the scripting engine, null if none set
-
check
protected String check(RemoteCommand cmd)
Hook method for checks before handling the command.- Overrides:
check
in classAbstractRemoteCommandHandler
- Parameters:
cmd
- the command to handle- Returns:
- null if checks passed, otherwise error message
-
doHandle
protected String doHandle(RemoteCommand cmd, RemoteCommandProcessor processor)
Handles the command.- Specified by:
doHandle
in classAbstractRemoteCommandHandler
- Parameters:
cmd
- the command to handleprocessor
- the processor for formatting/parsing- Returns:
- null if successful, otherwise error message
-
-