Package adams.flow.container
Class EncapsulatedActorsContainer
- java.lang.Object
-
- adams.flow.container.AbstractContainer
-
- adams.flow.container.EncapsulatedActorsContainer
-
- All Implemented Interfaces:
CloneHandler<Container>,GlobalInfoSupporter,SpreadSheetSupporter,Container,Serializable
public class EncapsulatedActorsContainer extends AbstractContainer
Container for encapsulating actors alongside variables and storage items.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
ActorProcessor, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringVALUE_ACTORthe key for the actor.static StringVALUE_INPUTthe key for the input.static StringVALUE_INPUTNAMEthe key for the input name.static StringVALUE_OUTPUTthe key for the output.static StringVALUE_OUTPUTNAMEthe key for the output name.static StringVALUE_STORAGEthe key for the storage.static StringVALUE_VARIABLESthe key for the variables.-
Fields inherited from class adams.flow.container.AbstractContainer
m_AdditionalNames, m_Help, m_Values
-
-
Constructor Summary
Constructors Constructor Description EncapsulatedActorsContainer()Default constructor.EncapsulatedActorsContainer(Actor actor, Variables variables, Storage storage)Initializes the container with the actors, variables and storage.EncapsulatedActorsContainer(Actor actor, Variables variables, Storage storage, Object input, StorageName inputName)Initializes the container with the actors, variables and storage.EncapsulatedActorsContainer(Actor actor, Variables variables, Storage storage, Object input, StorageName inputName, Object output, StorageName outputName)Initializes the container with the actors, variables and storage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidinitHelp()Initializes the help strings.booleanisValid()Checks whether the setup of the container is valid.Iterator<String>names()Returns all value names that can be used (theoretically).-
Methods inherited from class adams.flow.container.AbstractContainer
addAdditionalName, addHelp, addHelp, addHelp, checkDefaultConstructor, getClone, getHelp, getValue, getValue, globalInfo, hasHelp, hasValue, isValidName, removeAdditionalName, setValue, store, stored, toSpreadSheet, toString
-
-
-
-
Field Detail
-
VALUE_ACTOR
public static final String VALUE_ACTOR
the key for the actor.- See Also:
- Constant Field Values
-
VALUE_VARIABLES
public static final String VALUE_VARIABLES
the key for the variables.- See Also:
- Constant Field Values
-
VALUE_STORAGE
public static final String VALUE_STORAGE
the key for the storage.- See Also:
- Constant Field Values
-
VALUE_INPUT
public static final String VALUE_INPUT
the key for the input.- See Also:
- Constant Field Values
-
VALUE_INPUTNAME
public static final String VALUE_INPUTNAME
the key for the input name.- See Also:
- Constant Field Values
-
VALUE_OUTPUT
public static final String VALUE_OUTPUT
the key for the output.- See Also:
- Constant Field Values
-
VALUE_OUTPUTNAME
public static final String VALUE_OUTPUTNAME
the key for the output name.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EncapsulatedActorsContainer
public EncapsulatedActorsContainer()
Default constructor.
-
EncapsulatedActorsContainer
public EncapsulatedActorsContainer(Actor actor, Variables variables, Storage storage)
Initializes the container with the actors, variables and storage.- Parameters:
actor- the actor to storevariables- the variables to storestorage- the storage items to store
-
EncapsulatedActorsContainer
public EncapsulatedActorsContainer(Actor actor, Variables variables, Storage storage, Object input, StorageName inputName)
Initializes the container with the actors, variables and storage.- Parameters:
actor- the actor to storevariables- the variables to storestorage- the storage items to storeinput- the input token payload, can be nullinputName- the input name in storage, can be null
-
EncapsulatedActorsContainer
public EncapsulatedActorsContainer(Actor actor, Variables variables, Storage storage, Object input, StorageName inputName, Object output, StorageName outputName)
Initializes the container with the actors, variables and storage.- Parameters:
actor- the actor to storevariables- the variables to storestorage- the storage items to storeinput- the input token payload, can be nullinputName- the input name in storage, can be nulloutput- the output, can be nulloutputName- the output name in storage, can be null
-
-
Method Detail
-
names
public Iterator<String> names()
Returns all value names that can be used (theoretically).- Specified by:
namesin interfaceContainer- Specified by:
namesin classAbstractContainer- Returns:
- iterator over all possible value names
-
initHelp
protected void initHelp()
Initializes the help strings.- Overrides:
initHelpin classAbstractContainer
-
isValid
public boolean isValid()
Checks whether the setup of the container is valid.- Specified by:
isValidin interfaceContainer- Specified by:
isValidin classAbstractContainer- Returns:
- true if all the necessary values are available
-
-