Package adams.core.option
Class MaterializedArrayProducer
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.option.AbstractOptionProducer<O,I>
-
- adams.core.option.AbstractRecursiveOptionProducer<String[],ArrayList<String>>
-
- adams.core.option.ArrayProducer
-
- adams.core.option.MaterializedArrayProducer
-
- All Implemented Interfaces:
CleanUpHandler
,LoggingSupporter
,BlacklistedOptionProducer
,OptionProducer<String[],ArrayList<String>>
,RecursiveOptionProducer
,SizeOfHandler
,Serializable
public class MaterializedArrayProducer extends ArrayProducer
Specialized ArrayProducer that resolves "callable actor references" into concrete options.
Assumes that the callable actor forwards a setup if merely executed, without any input.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected CallableActorHelper
m_Helper
the helper for locating callable actors.-
Fields inherited from class adams.core.option.ArrayProducer
m_Blacklisted, m_OutputList
-
Fields inherited from class adams.core.option.AbstractRecursiveOptionProducer
m_Nesting
-
Fields inherited from class adams.core.option.AbstractOptionProducer
m_Input, m_LastGenerated, m_Output, m_OutputVariableValues, m_SkippedProperties, m_UsePropertyNames
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description MaterializedArrayProducer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected OptionHandler
checkInput(OptionHandler object)
Hook method for performing checks on the input.protected void
initialize()
Initializes the visitor.static void
main(String[] args)
Executes the producer from commandline.protected String
materialize(CallableActorReference ref)
Returns the setup represented by the callable actor.ArrayList<String>
processOption(AbstractArgumentOption option)
Visits an argument option.-
Methods inherited from class adams.core.option.ArrayProducer
cleanUp, doProduce, getBlacklisted, getOptions, getOutput, globalInfo, initOutput, preProduce, processOption, processOption, setBlacklisted, toString
-
Methods inherited from class adams.core.option.AbstractRecursiveOptionProducer
generateLoggingString, getDebugIndentation, getDebugIndentation, getRecursionLevel, reset
-
Methods inherited from class adams.core.option.AbstractOptionProducer
doProduce, getCurrentValue, getInput, getOptionIdentifier, getOutputVariableValues, getSkippedProperties, getUsePropertyNames, isDefaultValue, loggingLevelTipText, outputVariableValuesTipText, postProduce, postProduce, preProduce, produce, produce, runProducer, setLoggingLevel, setOutputVariableValues, setSkippedProperties, toString, write
-
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.option.OptionProducer
getLoggingLevel
-
Methods inherited from interface adams.core.option.RecursiveOptionProducer
getRecursionLevel
-
-
-
-
Field Detail
-
m_Helper
protected CallableActorHelper m_Helper
the helper for locating callable actors.
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the visitor.- Overrides:
initialize
in classArrayProducer
-
checkInput
protected OptionHandler checkInput(OptionHandler object)
Hook method for performing checks on the input. May throw exceptions if object doesn't pass test(s).
Makes sure that the input is derived from Actor.- Overrides:
checkInput
in classAbstractOptionProducer<String[],ArrayList<String>>
- Parameters:
object
- the objec to check- Returns:
- the checked object
- See Also:
Actor
-
materialize
protected String materialize(CallableActorReference ref)
Returns the setup represented by the callable actor.- Parameters:
ref
- the callable reference- Returns:
- the commandline setup
-
processOption
public ArrayList<String> processOption(AbstractArgumentOption option)
Visits an argument option.- Specified by:
processOption
in interfaceOptionProducer<String[],ArrayList<String>>
- Overrides:
processOption
in classArrayProducer
- Parameters:
option
- the argument option- Returns:
- the last internal data structure that was generated
-
main
public static void main(String[] args)
Executes the producer from commandline.- Parameters:
args
- the commandline arguments, use -help for help
-
-