Class MSequenceEdge


public class MSequenceEdge extends MEdge
A sequence edge is a control flow edge between activities.
  • Field Details

    • type

      protected String type
      The type.
    • def

      protected boolean def
      The default flag.
    • condition

      protected jadex.common.UnparsedExpression condition
      The condition.
    • parametermappings

      protected jadex.collection.IndexMap<String,jadex.common.Tuple2<jadex.common.UnparsedExpression,jadex.common.UnparsedExpression>> parametermappings
      The parameter mappings.
  • Constructor Details

    • MSequenceEdge

      public MSequenceEdge()
  • Method Details

    • connect

      public void connect(MActivity source, MActivity target)
      Helper method connecting two activities using this edge. The previous connection is removed.
      Parameters:
      source - New source of the edge.
      target - New target of the edge.
    • disconnect

      public void disconnect()
      Helper method disconnecting this edge.
    • getType

      public String getType()
      Get the type.
      Returns:
      The type.
    • setType

      public void setType(String type)
      Set the type.
      Parameters:
      type - The type to set.
    • isDefault

      public boolean isDefault()
      Get the default flag.
      Returns:
      The default flag.
    • setDefault

      public void setDefault(boolean def)
      Set the default flag.
      Parameters:
      def - The default flag.
    • setCondition

      public void setCondition(jadex.common.UnparsedExpression condition)
      Set the condition.
      Parameters:
      condition - The condition.
    • getCondition

      public jadex.common.UnparsedExpression getCondition()
      Get the condition.
      Returns:
      The condition.
    • getParsedCondition

      public jadex.javaparser.IParsedExpression getParsedCondition()
      Get the parsed condition.
      Returns:
      The parsed condition.
    • addParameterMapping

      public void addParameterMapping(String name, jadex.common.UnparsedExpression exp, jadex.common.UnparsedExpression iexp)
      Add a parameter mapping.
      Parameters:
      name - The parameter name.
      exp - The expression.
      iexp - The index expression, when setting a entry of an array parameter.
    • getParameterMappings

      public jadex.collection.IndexMap<String,jadex.common.Tuple2<jadex.common.UnparsedExpression,jadex.common.UnparsedExpression>> getParameterMappings()
      Get the parameter mappings map.
      Returns:
      The parameter mappings.