org.qtitools.qti.node.test.flow
Interface ItemFlow

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
DefaultItemFlow

public interface ItemFlow
extends java.io.Serializable

Item flow interface.

Author:
Jiri Kajaba

Method Summary
 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.
 

Method Detail

isFinished

boolean isFinished()
Returns true if there are no more item references to be presented; false otherwise.

Convenient method for getTest().isFinished().

Returns:
true if there are no more item references to be presented; false otherwise

getTest

AssessmentTest getTest()
Gets assessment test of this item flow.

Returns:
assessment test of this item flow

getCurrentTestPart

TestPart getCurrentTestPart()
Gets parent test part of current item reference (can be null).

Result is null before test starts and after test finishes.

Returns:
parent test part of current item reference (can be null)

getCurrentItemRef

AssessmentItemRef getCurrentItemRef()
Gets current item reference (can be null).

Result is null before test starts and after test finishes.

Returns:
current item reference (can be null)

hasPrevItemRef

boolean hasPrevItemRef(boolean includeFinished)
Returns true if there is any previous item reference in current test part; false otherwise.

Previous 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).

Parameters:
includeFinished - whether consider already finished item references
Returns:
true if there is any previous item reference in current test part; false otherwise

getPrevItemRef

AssessmentItemRef getPrevItemRef(boolean includeFinished)
Gets first previous item reference in current test part (can be null).

First 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.)

Parameters:
includeFinished - whether consider already finished item references
Returns:
first previous item reference in current test part (can be null)

hasNextItemRef

boolean hasNextItemRef(boolean includeFinished)
Returns true if there is any next item reference in current test part; false otherwise.

Next 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!

Parameters:
includeFinished - whether consider already finished item references
Returns:
true if there is any next item reference in current test part; false otherwise

getNextItemRef

AssessmentItemRef getNextItemRef(boolean includeFinished)
Gets first next item reference in test (can be null).

First 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!

Parameters:
includeFinished - whether consider already finished item references
Returns:
first next item reference in test (can be null)


Copyright © 2009. All Rights Reserved.