Package planner.configuration
Class Parameter<T>
java.lang.Object
planner.configuration.Parameter<T>
- Type Parameters:
T
- a value parametrizable in DEFramework.
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a new value at the end of the current list of configured values.Gets the description of the Parameter.getName()
Gets the name of the Parameter.int
Gets the number of configured values for the Parameter.getValue
(int i) Gets one of the configured values for the Parameter at position i.Gets the list of configured values for the Parameter.void
setDescription
(String description) Sets a desctiption for the Parameter.void
Sets a name for the Parameter.void
Sets a new value at position i in the current list of configured values.void
Sets a list with a set of configured values for the Parameter.
-
Constructor Details
-
Parameter
Constructor given the name and the description.- Parameters:
name
- name of the Parameter.description
- description of the Parameter.
-
Parameter
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
Gets the name of the Parameter.- Returns:
- the name of the Parameter.
-
getDescription
Gets the description of the Parameter.- Returns:
- the description of the Parameter.
-
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
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
Sets a name for the Parameter.- Parameters:
name
- the new name.
-
setDescription
Sets a desctiption for the Parameter.- Parameters:
description
- the new description.
-
setValues
Sets a list with a set of configured values for the Parameter.- Parameters:
values
- new list of configured values.
-
setValue
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
Adds a new value at the end of the current list of configured values.- Parameters:
value
- value to be added.
-