|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qtitools.qti.node.test.flow.DefaultItemFlow
public class DefaultItemFlow
Default implementation of item flow.
| Field Summary | |
|---|---|
protected ItemRefNode |
current
|
protected StartNode |
start
|
| Constructor Summary | |
|---|---|
DefaultItemFlow(AssessmentTest test)
Constructs item flow. |
|
| Method Summary | |
|---|---|
protected ItemRefNode |
findPrevItemRef(boolean includeFinished)
|
AssessmentItemRef |
getCurrentItemRef()
Gets current item reference (can be null). |
TestPart |
getCurrentTestPart()
Gets parent test part of current item reference (can be null). |
AssessmentItemRef |
getNextItemRef(boolean includeFinished)
Gets first next item reference in test (can be null). |
AssessmentItemRef |
getPrevItemRef(boolean includeFinished)
Gets first previous item reference in current test part (can be null). |
AssessmentTest |
getTest()
Gets assessment test of this item flow. |
boolean |
hasNextItemRef(boolean includeFinished)
Returns true if there is any next item reference in current test part; false otherwise. |
boolean |
hasPrevItemRef(boolean includeFinished)
Returns true if there is any previous item reference in current test part; false otherwise. |
boolean |
isFinished()
Returns true if there are no more item references to be presented; false otherwise. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected StartNode start
protected ItemRefNode current
| Constructor Detail |
|---|
public DefaultItemFlow(AssessmentTest test)
test - assessment test| Method Detail |
|---|
public boolean isFinished()
ItemFlow
Convenient method for getTest().isFinished().
isFinished in interface ItemFlowpublic AssessmentTest getTest()
ItemFlow
getTest in interface ItemFlowpublic TestPart getCurrentTestPart()
ItemFlowResult is null before test starts and after test finishes.
getCurrentTestPart in interface ItemFlowpublic AssessmentItemRef getCurrentItemRef()
ItemFlowResult is null before test starts and after test finishes.
getCurrentItemRef in interface ItemFlowpublic boolean hasPrevItemRef(boolean includeFinished)
ItemFlowPrevious item reference means any item reference which was presented before current item reference.
Returns false before test starts and after test finishes (current test part is null).
hasPrevItemRef in interface ItemFlowincludeFinished - whether consider already finished item references
public AssessmentItemRef getPrevItemRef(boolean includeFinished)
ItemFlowFirst previous item reference means item reference with the highest lower presented time than current item reference. (First left item reference from current item reference on time axis.)
getPrevItemRef in interface ItemFlowincludeFinished - whether consider already finished item references
protected ItemRefNode findPrevItemRef(boolean includeFinished)
public boolean hasNextItemRef(boolean includeFinished)
ItemFlowNext item reference means any item reference which was (or will be) presented after current item reference.
Returns false before test starts and after test finishes (current test part is null).
In linear individual mode this method can be called only when current item is finished!
hasNextItemRef in interface ItemFlowincludeFinished - whether consider already finished item references
public AssessmentItemRef getNextItemRef(boolean includeFinished)
ItemFlowFirst next item reference means item reference with the lowest higher presented time than current item reference. (First right item reference from current item reference on time axis.)
This is the only one method which can cross boundary of current test part. Once boundary is crossed, there is no way how to go back!
In linear individual mode this method can be called only when current item is finished!
getNextItemRef in interface ItemFlowincludeFinished - whether consider already finished item references
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||