Package adams.flow.processor
Class AbstractModifyingProcessor
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.processor.AbstractActorProcessor
-
- adams.flow.processor.AbstractModifyingProcessor
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,ShallowCopySupporter<ActorProcessor>,SizeOfHandler,ActorProcessor,ModifyingProcessor,Serializable,Comparable<ActorProcessor>
- Direct Known Subclasses:
AbstractModifyingInteractiveProcessor,AbstractNameUpdater,ChangeDatabaseConditionLimit,ChangeDatabaseConnection,ChangeDisplayType,ChangeNumThreads,ChangePath,FixLWLSynchroNoUpdate,FlattenStructure,ForwardSlashSwitch,ManageInteractiveActors,ManageTimedActors,MultiProcessor,ReactivateActors,RemoveAutogeneratedActors,RemoveBreakpoints,RemoveDisabledActors,RemoveUnusedReferenceableActors,ReplaceLinearRegression,SwapObjects
public abstract class AbstractModifyingProcessor extends AbstractActorProcessor implements ModifyingProcessor
Ancestor for processors that potentially modify flows that they are processing.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanm_Modifiedwhether the flow was modified.protected Actorm_ModifiedActorthe modified flow.protected booleanm_NoCopywhether to suppress copying the actor.-
Fields inherited from class adams.flow.processor.AbstractActorProcessor
m_Errors
-
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 AbstractModifyingProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActorgetModifiedActor()Returns the modified actor.booleangetNoCopy()Returns whether the copying of the actor is suppressed.protected voidinitialize()Initializes the members.booleanisModified()Returns whether the actor was modified.voidprocess(Actor actor)Processes the actor.voidsetNoCopy(boolean value)Sets whether to suppress copying the actor first before processing.-
Methods inherited from class adams.flow.processor.AbstractActorProcessor
addError, addError, checkData, compareTo, equals, getErrors, hasErrors, processActor, reset, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, defineOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.flow.processor.ActorProcessor
compareTo, getErrors, hasErrors, shallowCopy, shallowCopy
-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, defineOptions, getOptionManager, toCommandLine
-
-
-
-
Field Detail
-
m_Modified
protected boolean m_Modified
whether the flow was modified.
-
m_ModifiedActor
protected Actor m_ModifiedActor
the modified flow.
-
m_NoCopy
protected boolean m_NoCopy
whether to suppress copying the actor.
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initializein classAbstractActorProcessor
-
setNoCopy
public void setNoCopy(boolean value)
Sets whether to suppress copying the actor first before processing.- Specified by:
setNoCopyin interfaceModifyingProcessor- Parameters:
value- if true, no copy of the actor is generated
-
getNoCopy
public boolean getNoCopy()
Returns whether the copying of the actor is suppressed.- Specified by:
getNoCopyin interfaceModifyingProcessor- Returns:
- true if no copy generated
-
process
public void process(Actor actor)
Processes the actor.- Specified by:
processin interfaceActorProcessor- Overrides:
processin classAbstractActorProcessor- Parameters:
actor- the actor to process
-
isModified
public boolean isModified()
Returns whether the actor was modified.- Specified by:
isModifiedin interfaceModifyingProcessor- Returns:
- true if the actor was modified
-
getModifiedActor
public Actor getModifiedActor()
Returns the modified actor.- Specified by:
getModifiedActorin interfaceModifyingProcessor- Returns:
- the modified actor, null if not modified
-
-