public class TeststepRule extends Object implements Cloneable
| Constructor and Description |
|---|
TeststepRule(ArrayList<Decision> decisions,
ArrayList<Comparison> comparisons,
String successor,
int rulePositionInDecisiontable)
Creates a new test step rule with values from arguments.
|
| Modifier and Type | Method and Description |
|---|---|
TeststepRule |
clone()
Clones this test step rule.
|
Comparison |
getComparison(int nodePos)
Returns the comparison for a given node.
|
Decision |
getDecision(int nodePos)
Returns the decision for a given node.
|
int |
getNumDecisions()
This method returns the number of decisions in the teststep rule.
|
int |
getRulePositionInDecisiontable()
This method gives you the original rule position which this rule had in the decision table.
An Example: In a decision table may only rules on position 2 and 6 be valid ones. |
String |
getSuccessor()
This method returns the successor of this teststep rule.
The successor usually is the file name of another decision table. |
protected void |
setComparison(int nodePos,
Comparison comparison)
Set the comparison.
|
public TeststepRule(ArrayList<Decision> decisions, ArrayList<Comparison> comparisons, String successor, int rulePositionInDecisiontable)
decisions - List of decisionscomparisons - List of comparisonssuccessor - SuccessorrulePositionInDecisiontable - If you use a rule from a decision table to create this test step rule this field is meant to contain the position which the original rule (from which this test step rule was created) had. This field is currently used to inform the user. If you don't take a rule from decision table you may provide 0 here.public TeststepRule clone()
public Comparison getComparison(int nodePos)
nodePos - the position of the node we need the comparison frompublic Decision getDecision(int nodePos)
nodePos - the position of the node we need the decision frompublic int getNumDecisions()
public int getRulePositionInDecisiontable()
public String getSuccessor()
protected void setComparison(int nodePos,
Comparison comparison)
nodePos - position of the comparison to changecomparison - new comparisonCopyright © 2013. All Rights Reserved.