Package jadex.bdi.runtime.impl
Class RParameterElement.RParameter
java.lang.Object
jadex.bdi.runtime.impl.RElement
jadex.bdi.runtime.impl.RParameterElement.RParameter
- All Implemented Interfaces:
IElement,IParameter
- Enclosing class:
- RParameterElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jadex.common.UnparsedExpressionThe initial value expression (only for push evaluation mode).protected StringThe name.protected EventPublisherThe publisher.protected ObjectThe value.Fields inherited from class jadex.bdi.runtime.impl.RElement
cnt, id, modelelement -
Constructor Summary
ConstructorsConstructorDescriptionRParameter(MParameter modelelement, String name, jadex.common.UnparsedExpression inival, String pename) Create a new parameter.RParameter(MParameter modelelement, String name, Object value, String pename) Create a new parameter.RParameter(MParameter modelelement, String name, String pename) Create a new parameter. -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectevaluateValue(jadex.common.UnparsedExpression inival) Evaluate the (initial or default or pull) value.getName()Get the name.getValue()Get the value of a parameter.protected booleanTest if this parameter has a default value.protected voidinternalSetValue(Object value) Set the value without check.voidSet a value of a parameter.voidUpdate the dynamic value 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. -
value
The value. -
inival
protected jadex.common.UnparsedExpression inivalThe initial value expression (only for push evaluation mode). -
publisher
The publisher.
-
-
Constructor Details
-
RParameter
Create a new parameter.- Parameters:
modelelement- The model element.name- The name.
-
RParameter
public RParameter(MParameter modelelement, String name, jadex.common.UnparsedExpression inival, String pename) Create a new parameter.- Parameters:
modelelement- The model element.name- The name.
-
RParameter
Create a new parameter.- Parameters:
modelelement- The model element.name- The name.
-
-
Method Details
-
getName
Get the name.- Specified by:
getNamein interfaceIParameter- Returns:
- The name
-
setValue
Set a value of a parameter.- Specified by:
setValuein interfaceIParameter- Parameters:
value- The new value.
-
internalSetValue
Set the value without check. -
updateDynamicValue
public void updateDynamicValue()Update the dynamic value for push or update rate implementation. -
getValue
Get the value of a parameter.- Specified by:
getValuein interfaceIParameter- Returns:
- The value.
-
evaluateValue
Evaluate the (initial or default or pull) value. -
hasDefaultValue
protected boolean hasDefaultValue()Test if this parameter has a default value.
-