adams.flow.processor
Class FixDeprecatedEmail
java.lang.Object
adams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.flow.processor.AbstractActorProcessor
adams.flow.processor.AbstractModifyingProcessor
adams.flow.processor.FixDeprecatedEmail
- All Implemented Interfaces:
- Debuggable, Destroyable, OptionHandler, ShallowCopySupporter<AbstractActorProcessor>, SizeOfHandler, CleanUpProcessor, ModifyingProcessor, Serializable, Comparable
public class FixDeprecatedEmail
- extends AbstractModifyingProcessor
- implements CleanUpProcessor
Replaces the Email sink with CreateEmail
and SendEmail instances.
- Version:
- $Revision: 7123 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
| Methods inherited from class adams.flow.processor.AbstractActorProcessor |
addError, addError, checkData, compareTo, equals, forCommandLine, forName, getErrors, getProcessors, hasErrors, initialize, reset, shallowCopy, shallowCopy |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
cleanUpOptions, debug, debug, debugLevelTipText, defineOptions, destroy, finishInit, getDebugLevel, getOptionManager, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
FixDeprecatedEmail
public FixDeprecatedEmail()
globalInfo
public String globalInfo()
- Returns a string describing the object.
- Specified by:
globalInfo in class AbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
toCreateEmail
protected CreateEmail toCreateEmail(Email email)
- Transfers the configuration from the Email actor to the CreateEmail one.
- Parameters:
email - the source
- Returns:
- the configured actor
toSendEmail
protected SendEmail toSendEmail(Email email)
- Transfers the configuration from the Email actor to the SendEmail one.
- Parameters:
email - the source
- Returns:
- the configured actor
processActor
protected void processActor(AbstractActor actor)
- Performs the actual processing.
- Specified by:
processActor in class AbstractActorProcessor
- Parameters:
actor - the actor to process (is a copy of original for
processors implementing ModifyingProcessor)- See Also:
ModifyingProcessor
Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.