|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.flow.core.AbstractActor
adams.flow.core.AbstractTemplate
public abstract class AbstractTemplate
Abstract ancestor for all actors that use a template to generate the actual actor/sub-flow to be executed.
| Field Summary | |
|---|---|
static String |
BACKUP_ACTOR
the key for storing the current actor in the backup. |
protected AbstractActor |
m_Actor
the generated actor. |
protected AbstractActorTemplate |
m_Template
the template. |
| Fields inherited from class adams.flow.core.AbstractActor |
|---|
m_Annotations, m_BackupState, m_DetectedObjectVariables, m_DetectedVariables, m_ErrorHandler, m_Executed, m_Executing, m_ExecutionListeningSupporter, m_FullName, m_Headless, m_Name, m_Parent, m_Root, m_ScopeHandler, m_Self, m_Skip, m_StopFlowOnError, m_StopMessage, m_Stopped, m_StorageHandler, m_VariablesUpdated |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Fields inherited from interface adams.flow.core.Actor |
|---|
FILE_EXTENSION, FILE_EXTENSION_GZ |
| Constructor Summary | |
|---|---|
AbstractTemplate()
|
|
| Method Summary | |
|---|---|
protected Hashtable<String,Object> |
backupState()
Backs up the current state of the actor before update the variables. |
void |
cleanUp()
Cleans up after the execution has finished. |
void |
defineOptions()
Adds options to the internal list of options. |
AbstractActor |
getActualActor()
Returns the actual actor that was generated from the template. |
protected abstract AbstractActorTemplate |
getDefaultTemplate()
Returns the default template to use. |
String |
getQuickInfo()
Returns a quick info about the actor, which will be displayed in the GUI. |
AbstractActorTemplate |
getTemplate()
Returns the name of the global actor in use. |
boolean |
isFinished()
Returns whether the actor has finished. |
protected void |
pruneBackup()
Removes entries from the backup. |
protected void |
reset()
Resets the scheme. |
protected void |
restoreState(Hashtable<String,Object> state)
Restores the state of the actor before the variables got updated. |
void |
setTemplate(AbstractActorTemplate value)
Sets the name of the global actor to use. |
protected String |
setUpTemplate()
Initializes the template for flow execution. |
void |
stopExecution()
Stops the execution. |
String |
templateTipText()
Returns the tip text for this property. |
void |
wrapUp()
Cleans up after the execution has finished. |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, globalInfo, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface adams.core.option.OptionHandler |
|---|
cleanUpOptions, getOptionManager |
| Field Detail |
|---|
public static final String BACKUP_ACTOR
protected AbstractActorTemplate m_Template
protected AbstractActor m_Actor
| Constructor Detail |
|---|
public AbstractTemplate()
| Method Detail |
|---|
public void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractActorprotected void reset()
reset in class AbstractActorprotected abstract AbstractActorTemplate getDefaultTemplate()
public void setTemplate(AbstractActorTemplate value)
value - the global namepublic AbstractActorTemplate getTemplate()
public String templateTipText()
public String getQuickInfo()
getQuickInfo in interface QuickInfoSupportergetQuickInfo in interface ActorgetQuickInfo in class AbstractActorprotected void pruneBackup()
pruneBackup in class AbstractActorprotected Hashtable<String,Object> backupState()
backupState in class AbstractActorprotected void restoreState(Hashtable<String,Object> state)
restoreState in class AbstractActorstate - the backup of the state to restore fromprotected String setUpTemplate()
public AbstractActor getActualActor()
public boolean isFinished()
isFinished in interface ActorisFinished in class AbstractActorpublic void stopExecution()
stopExecution in interface StoppablestopExecution in interface ActorstopExecution in class AbstractActorpublic void wrapUp()
wrapUp in interface ActorwrapUp in class AbstractActorpublic void cleanUp()
cleanUp in interface CleanUpHandlercleanUp in interface ActorcleanUp in class AbstractActor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||