Class ConditionNodeTemplate
- java.lang.Object
-
- com.aquima.interactions.test.templates.AbstractReportingTemplate
-
- com.aquima.interactions.test.templates.tree.DecisionTreeNodeTemplate
-
- com.aquima.interactions.test.templates.tree.ConditionNodeTemplate
-
public class ConditionNodeTemplate extends DecisionTreeNodeTemplate
This template represents a condition node in a decision tree.- Since:
- 6.0
- Author:
- O. Kerpershoek
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConditionNodeTemplate(com.aquima.interactions.foundation.report.IInitializationReport report, String alternative, String attribute)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeSolutionTemplate
addAttributeSolution(String alternative, String attribute, String strValue)
This method can be used to add an attribute solution to the current node.ConditionNodeTemplate
addCondition(String alternative, String attribute)
This method can be used to add a condition sub-node to the current node.ContainerSolutionTemplate
addContainerSolution(String alternative, String containerName)
This method can be used to add a container solution to the current node.TreeLinkTemplate
addSubTree(String alternative, String treeName)
This method can be used to add a link to another tree.protected com.aquima.interactions.metamodel.AttributeReference
getAttribute()
com.aquima.interactions.test.templates.tree.DecisionTreeNodeDS
toDataSource()
This method returns the data-source implementation for the node template.-
Methods inherited from class com.aquima.interactions.test.templates.tree.DecisionTreeNodeTemplate
addNode, getAlternative, getNodes
-
Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
-
-
-
Method Detail
-
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 classDecisionTreeNodeTemplate
- Returns:
- the data-source implementation for the node template.
-
-