Class Parameter<T>

java.lang.Object
planner.configuration.Parameter<T>
Type Parameters:
T - a value parametrizable in DEFramework.

public class Parameter<T> extends Object
Parameter is a class for supporting the base scheme of a parametrizable object in DEFramework with a set of basic characteristics and possible values.
Since:
1.0
Version:
1.0
Author:
Alicia Vazquez Ramos
  • Constructor Details

    • Parameter

      public Parameter(String name, String description)
      Constructor given the name and the description.
      Parameters:
      name - name of the Parameter.
      description - description of the Parameter.
    • Parameter

      public Parameter(String name, String description, ArrayList<T> values)
      Constructor given the name, the description and a list of configured values.
      Parameters:
      name - name of the Parameter.
      description - description of the Parameter.
      values - list of the configured values.
  • Method Details

    • getName

      public String getName()
      Gets the name of the Parameter.
      Returns:
      the name of the Parameter.
    • getDescription

      public String getDescription()
      Gets the description of the Parameter.
      Returns:
      the description of the Parameter.
    • getValues

      public ArrayList<T> getValues()
      Gets the list of configured values for the Parameter.
      Returns:
      the list of configured values for the Parameter.
    • getNumValues

      public int getNumValues()
      Gets the number of configured values for the Parameter.
      Returns:
      the number of configured values for the Parameter.
    • getValue

      public T getValue(int i)
      Gets one of the configured values for the Parameter at position i.
      Parameters:
      i - position of required value.
      Returns:
      a value at position i of the list of configured values.
    • setName

      public void setName(String name)
      Sets a name for the Parameter.
      Parameters:
      name - the new name.
    • setDescription

      public void setDescription(String description)
      Sets a desctiption for the Parameter.
      Parameters:
      description - the new description.
    • setValues

      public void setValues(ArrayList<T> values)
      Sets a list with a set of configured values for the Parameter.
      Parameters:
      values - new list of configured values.
    • setValue

      public void setValue(int i, T value)
      Sets a new value at position i in the current list of configured values.
      Parameters:
      i - position for the new value.
      value - value to be added.
    • addValue

      public void addValue(T value)
      Adds a new value at the end of the current list of configured values.
      Parameters:
      value - value to be added.