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
,FlattenStructure
,ForwardSlashSwitch
,ManageInteractiveActors
,ManageTimedActors
,MultiProcessor
,ReactivateActors
,RemoveAutogeneratedActors
,RemoveBreakpoints
,RemoveDisabledActors
,RemoveUnusedReferenceableActors
,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 boolean
m_Modified
whether the flow was modified.protected Actor
m_ModifiedActor
the modified flow.protected boolean
m_NoCopy
whether 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 Actor
getModifiedActor()
Returns the modified actor.boolean
getNoCopy()
Returns whether the copying of the actor is suppressed.protected void
initialize()
Initializes the members.boolean
isModified()
Returns whether the actor was modified.void
process(Actor actor)
Processes the actor.void
setNoCopy(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:
initialize
in classAbstractActorProcessor
-
setNoCopy
public void setNoCopy(boolean value)
Sets whether to suppress copying the actor first before processing.- Specified by:
setNoCopy
in 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:
getNoCopy
in interfaceModifyingProcessor
- Returns:
- true if no copy generated
-
process
public void process(Actor actor)
Processes the actor.- Specified by:
process
in interfaceActorProcessor
- Overrides:
process
in classAbstractActorProcessor
- Parameters:
actor
- the actor to process
-
isModified
public boolean isModified()
Returns whether the actor was modified.- Specified by:
isModified
in interfaceModifyingProcessor
- Returns:
- true if the actor was modified
-
getModifiedActor
public Actor getModifiedActor()
Returns the modified actor.- Specified by:
getModifiedActor
in interfaceModifyingProcessor
- Returns:
- the modified actor, null if not modified
-
-