|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qtitools.qti.node.AbstractNode
org.qtitools.qti.node.AbstractObject
org.qtitools.qti.node.UniqueObject
org.qtitools.qti.node.test.ControlObject
public abstract class ControlObject
Abstract parent for assessmentTest, testPart, assessmentSection and assessmentItemRef.
| Field Summary | |
|---|---|
protected boolean |
finished
|
static java.lang.String |
VARIABLE_DURATION_NAME
Name of duration built-in variable. |
| Fields inherited from class org.qtitools.qti.node.UniqueObject |
|---|
ATTR_IDENTIFIER_NAME |
| Fields inherited from interface org.qtitools.qti.node.XmlNode |
|---|
INDENT, NEW_LINE, SIMPLE_NAME_INNER_SEPARATOR, SIMPLE_NAMES_SEPARATOR |
| Constructor Summary | |
|---|---|
ControlObject(ControlObject parent)
Constructs object. |
|
| Method Summary | |
|---|---|
abstract java.util.List<? extends AbstractPart> |
getChildren()
Gets abstractPart children. |
long |
getDuration()
Gets value of duration built-in variable. |
int |
getFinishedCount()
Gets total number of finished item references of this control object. |
int |
getGlobalIndex()
Returns global index (position) of this object in test. |
ControlObject |
getParent()
Gets parent of this node or null (if node is root; for example AssessmentTest). |
int |
getPresentedCount()
Gets total number of presented item references of this control object. |
long |
getResponseTime()
Gets total time spent inside this object excluding navigation time. |
TimeLimit |
getTimeLimit()
Gets timeLimit child. |
int |
getTotalCount()
Gets total number of item references of this control object. |
long |
getTotalTime()
Gets total time spent inside this object including navigation time. |
void |
initialize()
Initialises this object and all its abstractPart children. |
boolean |
isBuiltInVariable(java.lang.String identifier)
Returns true if given identifier is identifier of one of built-in variables; false otherwise. |
boolean |
isChildOf(ControlObject parent)
Returns true if given parameter is direct or indirect parent of this object; false otherwise. |
boolean |
isFinished()
Returns true if this object is finished; false otherwise. |
boolean |
isPresented()
Returns true if at least one child item reference was already presented to user; false otherwise. |
ControlObject |
lookup(java.lang.String identifier)
Lookups for object with given identifier. |
AssessmentItemRef |
lookupItemRef(java.lang.String identifier)
Lookups for item reference with given identifier. |
java.util.List<AssessmentItemRef> |
lookupItemRefs(java.lang.String identifier)
Returns all item references of given parent (identifier). |
java.util.List<AssessmentItemRef> |
lookupItemRefs(java.lang.String identifier,
java.util.List<java.lang.String> includeCategories,
java.util.List<java.lang.String> excludeCategories)
Returns all item references of given parent (identifier) with given conditions. |
Value |
lookupValue(java.lang.String identifier)
Lookups for value of variable with given identifier. |
boolean |
passMaximumTimeLimit()
Returns true if time used by this control object is lower or equal than maximum time limit; false otherwise. |
boolean |
passMinimumTimeLimit()
Returns true if time used by this control object is higher or equal than minimum time limit; false otherwise. |
void |
setFinished()
Sets this object to finished state. |
void |
setTimeLimit(TimeLimit timeLimit)
Sets new timeLimit child. |
| Methods inherited from class org.qtitools.qti.node.UniqueObject |
|---|
getIdentifier, getSimpleName, setIdentifier, validateAttributes |
| Methods inherited from class org.qtitools.qti.node.AbstractObject |
|---|
getParentItem, getParentResult, getParentTest, setParent |
| Methods inherited from class org.qtitools.qti.node.AbstractNode |
|---|
attrToXmlString, bodyToXmlString, getAttributes, getClassTag, getFullName, getIndent, getNode, getNode, getNode, getNodeGroups, getParentRoot, getSourceFile, getSourceNode, getSourceString, getSourceUrl, hasChildNodes, load, load, load, load, loadAttributes, readChild, readChildren, setParent, setSourceFile, setSourceNode, setSourceString, setSourceUrl, toXmlString, toXmlString, validate, validateChildren |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.qtitools.qti.node.XmlNode |
|---|
getAttributes, getClassTag, getFullName, getNodeGroups, getParentRoot, getSourceFile, getSourceNode, getSourceString, getSourceUrl, hasChildNodes, load, load, load, load, setSourceFile, setSourceNode, setSourceString, setSourceUrl, toXmlString, toXmlString |
| Methods inherited from interface org.qtitools.qti.validation.Validatable |
|---|
validate |
| Field Detail |
|---|
public static final java.lang.String VARIABLE_DURATION_NAME
protected boolean finished
| Constructor Detail |
|---|
public ControlObject(ControlObject parent)
parent - parent of constructed object| Method Detail |
|---|
public ControlObject getParent()
XmlNodeWhile testing some nodes (for example expressions) don't have properly set parent, but it is usable only for testing. (Some nodes cannot exists without parent even for testing).
getParent in interface XmlNodegetParent in interface XmlObjectgetParent in class AbstractObjectpublic TimeLimit getTimeLimit()
setTimeLimit(org.qtitools.qti.node.test.TimeLimit)public void setTimeLimit(TimeLimit timeLimit)
timeLimit - new timeLimit childgetTimeLimit()public abstract java.util.List<? extends AbstractPart> getChildren()
public void initialize()
public boolean isPresented()
Once object is presented it remains presented for ever.
public boolean isFinished()
Finished state has different meaning for different object types (see overriding methods).
Once object is finished it remains finished for ever.
setFinished()public void setFinished()
isFinished()public int getGlobalIndex()
This method is used for validation of branchRule. It is not possible to jump back (jump on object with lower global index).
public boolean isChildOf(ControlObject parent)
parent - given parameter
public ControlObject lookup(java.lang.String identifier)
identifier - identifier of requested object
public AssessmentItemRef lookupItemRef(java.lang.String identifier)
identifier - identifier of requested item reference
public java.util.List<AssessmentItemRef> lookupItemRefs(java.lang.String identifier)
identifier - identifier of requested parent
lookupItemRefs(String, List, List)
public java.util.List<AssessmentItemRef> lookupItemRefs(java.lang.String identifier,
java.util.List<java.lang.String> includeCategories,
java.util.List<java.lang.String> excludeCategories)
identifier - identifier of requested parentincludeCategories - returned item reference must contain this categoryexcludeCategories - returned item reference must not contain this category
lookupItemRefs(String)public boolean isBuiltInVariable(java.lang.String identifier)
identifier - given identifier
public Value lookupValue(java.lang.String identifier)
identifier - identifier of requested variable
public int getTotalCount()
public int getPresentedCount()
public int getFinishedCount()
public long getTotalTime()
getResponseTime()public long getResponseTime()
This methods returns pure response (thinking) time (navigation time is not included).
getTotalTime()public long getDuration()
Duration for test or test part or section means total time (thinking time including navigation time).
Duration for item reference means response time (thinking time excluding navigation time).
public boolean passMinimumTimeLimit()
Time used by this control object is calculated as:
AssessmentItemRef method getDuration is used.AssessmentItemRef method getTotalTime is used.This method is not implemented and returns always true.
public boolean passMaximumTimeLimit()
Time used by this control object is calculated as:
AssessmentItemRef method getDuration is used.AssessmentItemRef method getTotalTime is used.This method is used for check if item can be shown to the user.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||