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.UnparsedExpression
The initial value expression (only for push evaluation mode).protected String
The name.protected EventPublisher
The publisher.protected Object
The 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 Object
evaluateValue
(jadex.common.UnparsedExpression inival) Evaluate the (initial or default or pull) value.getName()
Get the name.getValue()
Get the value of a parameter.protected boolean
Test if this parameter has a default value.protected void
internalSetValue
(Object value) Set the value without check.void
Set a value of a parameter.void
Update 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, 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. -
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:
getName
in interfaceIParameter
- Returns:
- The name
-
setValue
Set a value of a parameter.- Specified by:
setValue
in 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:
getValue
in 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.
-