Class AbstractPyroTransformer
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.core.AbstractPyroCall
-
- adams.flow.transformer.pyrotransformer.AbstractPyroTransformer
-
- All Implemented Interfaces:
CleanUpHandler
,Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,QuickInfoSupporter
,SizeOfHandler
,FlowContextHandler
,PyroCall
,PyroInputConsumer
,PyroOutputProducer
,Serializable
- Direct Known Subclasses:
ExampleGreeting
,Generic
,Null
public abstract class AbstractPyroTransformer extends AbstractPyroCall implements PyroInputConsumer, PyroOutputProducer
Ancestor for Pyro calls that transform data.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Object
m_Input
the input object.protected Object
m_Output
the generated output object.-
Fields inherited from class adams.flow.core.AbstractPyroCall
m_FlowContext, m_MethodName, m_NameServer, m_RemoteObject, m_RemoteObjectName
-
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 AbstractPyroTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanUp()
Cleans up data structures, frees up memory.boolean
hasPendingOutput()
Checks whether there is pending output to be collected after executing the flow item.void
input(Object obj)
The method that accepts the input object.Object
output()
Returns the generated object.protected String
postExecute()
After performing the actual call.protected String
preExecute()
Before performing the actual call.-
Methods inherited from class adams.flow.core.AbstractPyroCall
defineOptions, doExecute, execute, getDefaultMethodName, getDefaultRemoteObjectName, getFlowContext, getMethodName, getQuickInfo, getRemoteObjectName, methodNameTipText, remoteObjectNameTipText, reset, setFlowContext, setMethodName, setRemoteObjectName, setUp
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, initialize, loggingLevelTipText, newOptionManager, 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.Destroyable
destroy
-
Methods inherited from interface adams.flow.core.FlowContextHandler
getFlowContext, setFlowContext
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, defineOptions, getOptionManager, toCommandLine
-
Methods inherited from interface adams.flow.core.PyroCall
execute, getMethodName, getRemoteObjectName, methodNameTipText, remoteObjectNameTipText, setMethodName, setRemoteObjectName, setUp
-
Methods inherited from interface adams.flow.core.PyroInputConsumer
accepts
-
Methods inherited from interface adams.flow.core.PyroOutputProducer
generates
-
-
-
-
Method Detail
-
input
public void input(Object obj)
The method that accepts the input object.- Specified by:
input
in interfacePyroInputConsumer
- Parameters:
obj
- the object to accept and process
-
preExecute
protected String preExecute()
Before performing the actual call.- Overrides:
preExecute
in classAbstractPyroCall
- Returns:
- null if successful, otherwise error message
-
postExecute
protected String postExecute()
After performing the actual call.- Overrides:
postExecute
in classAbstractPyroCall
- Returns:
- null if successful, otherwise error message
-
output
public Object output()
Returns the generated object.- Specified by:
output
in interfacePyroOutputProducer
- Returns:
- the generated object
-
hasPendingOutput
public boolean hasPendingOutput()
Checks whether there is pending output to be collected after executing the flow item.- Specified by:
hasPendingOutput
in interfacePyroOutputProducer
- Returns:
- true if there is pending output
-
cleanUp
public void cleanUp()
Cleans up data structures, frees up memory.- Specified by:
cleanUp
in interfaceCleanUpHandler
- Overrides:
cleanUp
in classAbstractPyroCall
-
-