|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qtitools.qti.node.test.flow.Node
org.qtitools.qti.node.test.flow.MiddleNode
org.qtitools.qti.node.test.flow.JumpNode
public abstract class JumpNode
Jump node is middle node with precondition or branch rule assessment object.
| Field Summary |
|---|
| Fields inherited from class org.qtitools.qti.node.test.flow.Node |
|---|
logger |
| Constructor Summary | |
|---|---|
protected |
JumpNode(Node prev,
AbstractJump object)
Constructs node. |
| Method Summary | |
|---|---|
Node |
evaluate()
Evaluates target of this jump node (which node will be next in item flow after this jump). |
protected abstract Node |
evaluate(boolean condition)
Evaluates target of this jump node (which node will be next in item flow after this jump). |
AbstractJump |
getJump()
Gets assessment object (precondition or branch rule) of this node. |
Node |
getTarget()
Gets alternative (not default) target of this jump node. |
boolean |
isJump()
Returns true if this node is jump node; false otherwise. |
void |
setTarget(Node target)
Sets new alternative (not default) target of this jump node. |
java.lang.String |
toString()
|
| Methods inherited from class org.qtitools.qti.node.test.flow.MiddleNode |
|---|
isMiddle |
| Methods inherited from class org.qtitools.qti.node.test.flow.Node |
|---|
getIndex, getNext, getObject, getPrev, isBorder, isBranchRule, isEnd, isItemRef, isPreCondition, isStart |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected JumpNode(Node prev,
AbstractJump object)
prev - previous node in linked listobject - assessment object (precondition or branch rule)| Method Detail |
|---|
public boolean isJump()
NodeJump node is middle node with precondition or branch rule object.
isJump in class Nodepublic AbstractJump getJump()
public Node getTarget()
Default target can be obtained with getNext method.
setTarget(org.qtitools.qti.node.test.flow.Node)public void setTarget(Node target)
Default target can be obtained with getNext method.
target - new alternative (not default) target of this jump nodegetTarget()public Node evaluate()
protected abstract Node evaluate(boolean condition)
condition - result of evaluation of jump's expression
public java.lang.String toString()
toString in class Node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||