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

public class RParameterElement.RParameter extends RElement implements IParameter
  • Field Details

    • name

      protected String name
      The name.
    • value

      protected Object value
      The value.
    • inival

      protected jadex.common.UnparsedExpression inival
      The initial value expression (only for push evaluation mode).
    • publisher

      protected EventPublisher publisher
      The publisher.
  • Constructor Details

    • RParameter

      public RParameter(MParameter modelelement, String name, String pename)
      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

      public RParameter(MParameter modelelement, String name, Object value, String pename)
      Create a new parameter.
      Parameters:
      modelelement - The model element.
      name - The name.
  • Method Details

    • getName

      public String getName()
      Get the name.
      Specified by:
      getName in interface IParameter
      Returns:
      The name
    • setValue

      public void setValue(Object value)
      Set a value of a parameter.
      Specified by:
      setValue in interface IParameter
      Parameters:
      value - The new value.
    • internalSetValue

      protected void internalSetValue(Object value)
      Set the value without check.
    • updateDynamicValue

      public void updateDynamicValue()
      Update the dynamic value for push or update rate implementation.
    • getValue

      public Object getValue()
      Get the value of a parameter.
      Specified by:
      getValue in interface IParameter
      Returns:
      The value.
    • evaluateValue

      protected Object evaluateValue(jadex.common.UnparsedExpression inival)
      Evaluate the (initial or default or pull) value.
    • hasDefaultValue

      protected boolean hasDefaultValue()
      Test if this parameter has a default value.