Class 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 Summary

      Modifier and Type Method Description
      <agentType extends VarSet>
      void
      AddVarSet​(agentType agent)
      adds a new variable set to the given agent.
      double[] GenVarSet()  
      int NewVar()
      generates a new variable as part of the var array, returns the index of the variable
      int NumParams()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VarSetManager

        public 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()