Package jadex.bdi.runtime.impl
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List
<jadex.common.UnparsedExpression> The initial values expression(s) (only for push evaluation mode).protected String
The name.The value.Fields inherited from class jadex.bdi.runtime.impl.RElement
cnt, id, modelelement
-
Constructor Summary
ConstructorsConstructorDescriptionRParameterSet
(MParameter modelelement, String name, Object vals, String pename) Create a new parameter.RParameterSet
(MParameter modelelement, String name, String pename) Create a new parameter.RParameterSet
(MParameter modelelement, String name, List<jadex.common.UnparsedExpression> inivals, String pename) Create a new parameter. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a value to a parameter set.void
Add values to a parameter set.boolean
containsValue
(Object value) Test if a value is contained in a parameter.evaluateValues
(List<jadex.common.UnparsedExpression> inivals) Evaluate the default values.protected Class
<?> getClazz()
Get the class of a value.getName()
Get the name.Object[]
Get the values of a parameterset.protected Object[]
Get the values of a parameterset.protected void
internalAddValue
(Object value) Add a value.protected void
internalRemoveValue
(Object value) Remove a value.protected void
Remove all values.protected void
internalSetValues
(List<Object> values) The values to set.void
removeValue
(Object value) Remove a value to a parameter set.void
Remove all values from a parameter set.protected void
The values to set.int
size()
Get the number of values currently contained in this set.void
Update the dynamic values for push or update rate implementation.Methods inherited from class jadex.bdi.runtime.impl.RElement
getAgent, getCapability, getCount, getId, getMCapability, getModelElement, getRuleSystem, setId, setModelElement, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface jadex.bdi.runtime.IElement
getCount, getId, getModelElement
-
Field Details
-
name
The name. -
values
The value. -
inivals
The initial values expression(s) (only for push evaluation mode).
-
-
Constructor Details
-
RParameterSet
Create a new parameter.- Parameters:
modelelement
- The model element.name
- The name.
-
RParameterSet
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
Evaluate the default values. -
getClazz
Get the class of a value. -
getName
Get the name.- Specified by:
getName
in interfaceIParameterSet
- Returns:
- The name
-
addValue
Add a value to a parameter set.- Specified by:
addValue
in interfaceIParameterSet
- Parameters:
value
- The new value.
-
internalAddValue
Add a value. -
removeValue
Remove a value to a parameter set.- Specified by:
removeValue
in interfaceIParameterSet
- Parameters:
value
- The new value.
-
internalRemoveValue
Remove a value. -
addValues
Add values to a parameter set.- Specified by:
addValues
in interfaceIParameterSet
-
removeValues
public void removeValues()Remove all values from a parameter set.- Specified by:
removeValues
in interfaceIParameterSet
-
internalRemoveValues
protected void internalRemoveValues()Remove all values. -
containsValue
Test if a value is contained in a parameter.- Specified by:
containsValue
in interfaceIParameterSet
- Parameters:
value
- The value to test.- Returns:
- True, if value is contained.
-
getValues
Get the values of a parameterset.- Specified by:
getValues
in interfaceIParameterSet
- Returns:
- The values.
-
updateDynamicValues
public void updateDynamicValues()Update the dynamic values for push or update rate implementation. -
getValues
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 interfaceIParameterSet
- Returns:
- The values count.
-
setValues
The values to set.- Parameters:
values
- The values to set
-
internalSetValues
The values to set.- Parameters:
values
- The values to set
-
internalGetValues
-