adams.flow.generator
Class Template

java.lang.Object
  extended by adams.core.ConsoleObject
      extended by adams.core.option.AbstractOptionHandler
          extended by adams.flow.generator.AbstractFlowGenerator
              extended by adams.flow.generator.Template
All Implemented Interfaces:
Debuggable, Destroyable, OptionHandler, SizeOfHandler, Generator, Serializable

public class Template
extends AbstractFlowGenerator

Uses the specified flow template to generate the sub-flow.

Valid options are:

-D <int> (property: debugLevel)
    The greater the number the more additional info the scheme may output to 
    the console (0 = off).
    default: 0
    minimum: 0
 
-template <adams.flow.template.AbstractActorTemplate> (property: template)
    The template to use for generating the actual actor.
    default: adams.flow.template.DummyStandalone
 

Version:
$Revision: 5261 $
Author:
fracpete (fracpete at waikato dot ac dot nz)
See Also:
Serialized Form

Field Summary
protected  AbstractActorTemplate m_Template
          the template.
 
Fields inherited from class adams.flow.generator.AbstractFlowGenerator
m_Owner
 
Fields inherited from class adams.core.option.AbstractOptionHandler
m_DebugLevel, m_OptionManager
 
Constructor Summary
Template()
           
 
Method Summary
 void defineOptions()
          Adds options to the internal list of options.
protected  AbstractActor doGenerate()
          Generates the flow.
protected  AbstractActorTemplate getDefaultTemplate()
          Returns the default template to use.
 AbstractActorTemplate getTemplate()
          Returns the name of the global actor in use.
 String globalInfo()
          Returns a string describing the object.
 void setTemplate(AbstractActorTemplate value)
          Sets the name of the global actor to use.
 String templateTipText()
          Returns the tip text for this property.
 
Methods inherited from class adams.flow.generator.AbstractFlowGenerator
check, generate, getOwner, setOwner
 
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString
 
Methods inherited from class adams.core.ConsoleObject
getDebugging, getSystemErr, getSystemOut, sizeOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_Template

protected AbstractActorTemplate m_Template
the template.

Constructor Detail

Template

public Template()
Method Detail

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

defineOptions

public void defineOptions()
Adds options to the internal list of options.

Specified by:
defineOptions in interface OptionHandler
Overrides:
defineOptions in class AbstractOptionHandler

getDefaultTemplate

protected AbstractActorTemplate getDefaultTemplate()
Returns the default template to use.

Returns:
the template

setTemplate

public void setTemplate(AbstractActorTemplate value)
Sets the name of the global actor to use.

Parameters:
value - the global name

getTemplate

public AbstractActorTemplate getTemplate()
Returns the name of the global actor in use.

Returns:
the global name

templateTipText

public String templateTipText()
Returns the tip text for this property.

Returns:
tip text for this property suitable for displaying in the GUI or for listing the options.

doGenerate

protected AbstractActor doGenerate()
Generates the flow.

Specified by:
doGenerate in class AbstractFlowGenerator
Returns:
the flow


Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.