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 StringThe 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 TypeMethodDescriptionvoidAdd a value to a parameter set.voidAdd values to a parameter set.booleancontainsValue(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 voidinternalAddValue(Object value) Add a value.protected voidinternalRemoveValue(Object value) Remove a value.protected voidRemove all values.protected voidinternalSetValues(List<Object> values) The values to set.voidremoveValue(Object value) Remove a value to a parameter set.voidRemove all values from a parameter set.protected voidThe values to set.intsize()Get the number of values currently contained in this set.voidUpdate 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
getNamein interfaceIParameterSet- Returns:
- The name
-
addValue
Add a value to a parameter set.- Specified by:
addValuein interfaceIParameterSet- Parameters:
value- The new value.
-
internalAddValue
Add a value. -
removeValue
Remove a value to a parameter set.- Specified by:
removeValuein interfaceIParameterSet- Parameters:
value- The new value.
-
internalRemoveValue
Remove a value. -
addValues
Add values to a parameter set.- Specified by:
addValuesin interfaceIParameterSet
-
removeValues
public void removeValues()Remove all values from a parameter set.- Specified by:
removeValuesin interfaceIParameterSet
-
internalRemoveValues
protected void internalRemoveValues()Remove all values. -
containsValue
Test if a value is contained in a parameter.- Specified by:
containsValuein interfaceIParameterSet- Parameters:
value- The value to test.- Returns:
- True, if value is contained.
-
getValues
Get the values of a parameterset.- Specified by:
getValuesin 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:
sizein 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
-