Class AbstractMetaRatOutput
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.standalone.rats.output.AbstractRatOutput
-
- adams.flow.standalone.rats.output.AbstractMetaRatOutput
-
- All Implemented Interfaces:
adams.core.AdditionalInformationHandler
,adams.core.CleanUpHandler
,adams.core.Destroyable
,adams.core.GlobalInfoSupporter
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.QuickInfoSupporter
,adams.core.ShallowCopySupporter<AbstractRatOutput>
,adams.core.SizeOfHandler
,adams.core.Stoppable
,adams.core.StoppableWithFeedback
,adams.event.VariableChangeListener
,RatOutput
,Serializable
- Direct Known Subclasses:
ContainerValuePicker
,OutputWithCallableTransformer
,OutputWithExternalTransformer
,SimpleContainerContent
public abstract class AbstractMetaRatOutput extends AbstractRatOutput
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected RatOutput
m_Output
the base RatOutput to use.-
Fields inherited from class adams.flow.standalone.rats.output.AbstractRatOutput
m_BackupState, m_DetectedObjectVariables, m_DetectedVariables, m_Input, m_LoggingPrefix, m_Owner, m_Stopped, m_VariablesUpdated
-
-
Constructor Summary
Constructors Constructor Description AbstractMetaRatOutput()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
callTransmit()
Hook method that calls the base-input's transmit() method.void
defineOptions()
Adds options to the internal list of options.protected String
doTransmit()
Performs the actual reception of data.RatOutput
getOutput()
Returns the base transmitter to use.String
getQuickInfo()
Returns a quick info about the actor, which will be displayed in the GUI.String
initTransmission()
Initializes the transmission.String
outputTipText()
Returns the tip text for this property.protected String
postTransmit()
Hook method after calling the base-output's transmit() method.protected String
preTransmit()
Hook method before calling the base-output's transmit() method.void
setOutput(RatOutput value)
Sets the base transmitter to use.void
setOwner(Rat value)
Sets the actor the transmitter belongs to.String
setUp()
Hook method for performing checks at setup time.-
Methods inherited from class adams.flow.standalone.rats.output.AbstractRatOutput
accepts, backupState, canInput, check, cleanUp, configureLogger, doWait, findVariables, getAdditionalInformation, getFullName, getOwner, getQueue, getVariables, handleException, initialize, input, isBackedUp, isStopped, pruneBackup, pruneBackup, restoreState, shallowCopy, shallowCopy, stopExecution, transmit, updateDetectedVariables, updatePrefix, updateVariables, variableChanged
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_Output
protected RatOutput m_Output
the base RatOutput to use.
-
-
Method Detail
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceadams.core.option.OptionHandler
- Overrides:
defineOptions
in classadams.core.option.AbstractOptionHandler
-
setOwner
public void setOwner(Rat value)
Sets the actor the transmitter belongs to.- Specified by:
setOwner
in interfaceRatOutput
- Overrides:
setOwner
in classAbstractRatOutput
- Parameters:
value
- the owner
-
setOutput
public void setOutput(RatOutput value)
Sets the base transmitter to use.- Parameters:
value
- the transmitter
-
getOutput
public RatOutput getOutput()
Returns the base transmitter to use.- Returns:
- the transmitter
-
outputTipText
public String outputTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getQuickInfo
public String getQuickInfo()
Returns a quick info about the actor, which will be displayed in the GUI.- Specified by:
getQuickInfo
in interfaceadams.core.QuickInfoSupporter
- Overrides:
getQuickInfo
in classAbstractRatOutput
- Returns:
- null if no info available, otherwise short string
-
setUp
public String setUp()
Hook method for performing checks at setup time.- Specified by:
setUp
in interfaceRatOutput
- Overrides:
setUp
in classAbstractRatOutput
- Returns:
- null if successful, otherwise error message
-
initTransmission
public String initTransmission()
Initializes the transmission.- Specified by:
initTransmission
in interfaceRatOutput
- Overrides:
initTransmission
in classAbstractRatOutput
- Returns:
- null if successfully initialized, otherwise error message
-
preTransmit
protected String preTransmit()
Hook method before calling the base-output's transmit() method.
Default implementation does nothing.- Returns:
- null if successful, otherwise error message
-
callTransmit
protected String callTransmit()
Hook method that calls the base-input's transmit() method.- Returns:
- null if successful, otherwise error message
-
postTransmit
protected String postTransmit()
Hook method after calling the base-output's transmit() method.
Default implementation does nothing.- Returns:
- null if successful, otherwise error message
-
doTransmit
protected String doTransmit()
Performs the actual reception of data.- Specified by:
doTransmit
in classAbstractRatOutput
- Returns:
- null if successful, otherwise error message
-
-