Class MParameter


public class MParameter extends MProperty
A parameter model element.
  • Field Details

  • Constructor Details

    • MParameter

      public MParameter()
      Create a new parameter.
    • MParameter

      public MParameter(String direction, jadex.common.ClassInfo clazz, String name, jadex.common.UnparsedExpression initialval)
      Create a new parameter.
  • Method Details

    • getDirection

      public String getDirection()
      Get the direction.
      Returns:
      The direction.
    • setDirection

      public void setDirection(String direction)
      Set the direction.
      Parameters:
      direction - The direction to set.
    • isOut

      public boolean isOut()
      Test if parameter is out (i.e. out or inout).
      Returns:
      True, if is a out parameter.
    • isIn

      public boolean isIn()
      Test if parameter is in (i.e. in or inout).
      Returns:
      True, if is a in parameter.
    • getClazz

      public jadex.common.ClassInfo getClazz()
      Get the clazz.
      Overrides:
      getClazz in class MProperty
      Returns:
      The clazz.
    • setClazz

      public void setClazz(jadex.common.ClassInfo clazz)
      Set the clazz.
      Overrides:
      setClazz in class MProperty
      Parameters:
      clazz - The clazz to set.
    • getName

      public String getName()
      Get the name.
      Overrides:
      getName in class MProperty
      Returns:
      The name.
    • setName

      public void setName(String name)
      Set the name.
      Overrides:
      setName in class MProperty
      Parameters:
      name - The name to set.
    • getInitialValue

      public jadex.common.UnparsedExpression getInitialValue()
      Get the initialval.
      Overrides:
      getInitialValue in class MProperty
      Returns:
      The initialval.
    • setInitialValue

      public void setInitialValue(jadex.common.UnparsedExpression initialval)
      Set the initial value.
      Overrides:
      setInitialValue in class MProperty
      Parameters:
      initialval - The initial value to set.
    • toString

      public String toString()
      Get the string representation.
      Overrides:
      toString in class MProperty
      Returns:
      The string representation.