Class RParameterElement.RParameterSet

java.lang.Object
jadex.bdi.runtime.impl.RElement
jadex.bdi.runtime.impl.RParameterElement.RParameterSet
All Implemented Interfaces:
IElement, IParameterSet
Enclosing class:
RParameterElement

public class RParameterElement.RParameterSet extends RElement implements IParameterSet
  • Field Details

    • name

      protected String name
      The name.
    • values

      protected List<Object> values
      The value.
    • inivals

      protected List<jadex.common.UnparsedExpression> inivals
      The initial values expression(s) (only for push evaluation mode).
  • Constructor Details

    • RParameterSet

      public RParameterSet(MParameter modelelement, String name, String pename)
      Create a new parameter.
      Parameters:
      modelelement - The model element.
      name - The name.
    • RParameterSet

      public RParameterSet(MParameter modelelement, String name, Object vals, String pename)
      Create a new parameter.
      Parameters:
      modelelement - The model element.
      name - The name.
    • RParameterSet

      public RParameterSet(MParameter modelelement, String name, List<jadex.common.UnparsedExpression> inivals, String pename)
      Create a new parameter.
      Parameters:
      modelelement - The model element.
      name - The name.
  • Method Details

    • evaluateValues

      protected List<Object> evaluateValues(List<jadex.common.UnparsedExpression> inivals)
      Evaluate the default values.
    • getClazz

      protected Class<?> getClazz()
      Get the class of a value.
    • getName

      public String getName()
      Get the name.
      Specified by:
      getName in interface IParameterSet
      Returns:
      The name
    • addValue

      public void addValue(Object value)
      Add a value to a parameter set.
      Specified by:
      addValue in interface IParameterSet
      Parameters:
      value - The new value.
    • internalAddValue

      protected void internalAddValue(Object value)
      Add a value.
    • removeValue

      public void removeValue(Object value)
      Remove a value to a parameter set.
      Specified by:
      removeValue in interface IParameterSet
      Parameters:
      value - The new value.
    • internalRemoveValue

      protected void internalRemoveValue(Object value)
      Remove a value.
    • addValues

      public void addValues(Object[] values)
      Add values to a parameter set.
      Specified by:
      addValues in interface IParameterSet
    • removeValues

      public void removeValues()
      Remove all values from a parameter set.
      Specified by:
      removeValues in interface IParameterSet
    • internalRemoveValues

      protected void internalRemoveValues()
      Remove all values.
    • containsValue

      public boolean containsValue(Object value)
      Test if a value is contained in a parameter.
      Specified by:
      containsValue in interface IParameterSet
      Parameters:
      value - The value to test.
      Returns:
      True, if value is contained.
    • getValues

      public Object[] getValues()
      Get the values of a parameterset.
      Specified by:
      getValues in interface IParameterSet
      Returns:
      The values.
    • updateDynamicValues

      public void updateDynamicValues()
      Update the dynamic values for push or update rate implementation.
    • getValues

      protected Object[] getValues(Class<?> type)
      Get the values of a parameterset.
      Returns:
      The values.
    • size

      public int size()
      Get the number of values currently contained in this set.
      Specified by:
      size in interface IParameterSet
      Returns:
      The values count.
    • setValues

      protected void setValues(List<Object> values)
      The values to set.
      Parameters:
      values - The values to set
    • internalSetValues

      protected void internalSetValues(List<Object> values)
      The values to set.
      Parameters:
      values - The values to set
    • internalGetValues

      protected List<Object> internalGetValues()