Package HAL.Tools.Modularity
Class VarSetManager
- java.lang.Object
-
- HAL.Tools.Modularity.VarSetManager
-
- All Implemented Interfaces:
java.io.Serializable
public class VarSetManager extends java.lang.Object implements java.io.Serializable
the VarSetManager class maintains a count of parameters that are requested for an agent class that implements the VarSet interface. this class is useful along with the ModuleSetManger to add agent variables that are only manipulated by one module- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VarSetManager()
-
-
-
Method Detail
-
NewVar
public int NewVar()
generates a new variable as part of the var array, returns the index of the variable
-
AddVarSet
public <agentType extends VarSet> void AddVarSet(agentType agent)
adds a new variable set to the given agent. does nothing if the variable set has already been initialized
-
GenVarSet
public double[] GenVarSet()
-
NumParams
public int NumParams()
-
-