Class ConditionNodeTemplate


public class ConditionNodeTemplate extends DecisionTreeNodeTemplate
This template represents a condition node in a decision tree.
Since:
6.0
Author:
O. Kerpershoek
  • Constructor Details

    • ConditionNodeTemplate

      protected ConditionNodeTemplate(com.aquima.interactions.foundation.report.IInitializationReport report, String alternative, String attribute)
  • Method Details

    • addCondition

      public ConditionNodeTemplate addCondition(String alternative, String attribute)
      This method can be used to add a condition sub-node to the current node.
      Parameters:
      alternative - The alternative expression that should be used when evaluating the parent condition.
      attribute - The attribute that should be asked.
      Returns:
      Condition template representing the added sub node.
    • addAttributeSolution

      public AttributeSolutionTemplate addAttributeSolution(String alternative, String attribute, String strValue)
      This method can be used to add an attribute solution to the current node.
      Parameters:
      alternative - The alternative expression that should be used when evaluating the parent condition.
      attribute - The attribute of the solution.
      strValue - The value of the solution.
      Returns:
      Solution template representing the added sub node.
    • addContainerSolution

      public ContainerSolutionTemplate addContainerSolution(String alternative, String containerName)
      This method can be used to add a container solution to the current node.
      Parameters:
      alternative - The alternative expression that should be used when evaluating the parent condition.
      containerName - The name of the container.
      Returns:
      Solution template representing the added sub node.
    • addSubTree

      public TreeLinkTemplate addSubTree(String alternative, String treeName)
      This method can be used to add a link to another tree.
      Parameters:
      alternative - The alternative expression that should be used when evaluating the parent condition.
      treeName - The name of the decision tree that is linked to.
      Returns:
      Template representing the link to the decision tree.
    • getAttribute

      protected com.aquima.interactions.metamodel.AttributeReference getAttribute()
    • toDataSource

      public com.aquima.interactions.test.templates.tree.DecisionTreeNodeDS toDataSource()
      Description copied from class: DecisionTreeNodeTemplate
      This method returns the data-source implementation for the node template.
      Specified by:
      toDataSource in class DecisionTreeNodeTemplate
      Returns:
      the data-source implementation for the node template.