org.qtitools.qti.node.test
Class TimeLimit

java.lang.Object
  extended by org.qtitools.qti.node.AbstractNode
      extended by org.qtitools.qti.node.AbstractObject
          extended by org.qtitools.qti.node.test.TimeLimit
All Implemented Interfaces:
java.io.Serializable, XmlNode, XmlObject, Validatable

public class TimeLimit
extends AbstractObject

In the context of A specific assessmentTest an item, or group of items, may be subject to A time constraint. This specification supports both minimum and maximum time constraints. The controlled time for A single item is simply the duration of the item session as defined by the built-in response variable duration. For assessmentSections, testParts and whole assessmentTests the time limits relate to the durations of all the item sessions plus any other time spent navigating that part of the test. In other words, the time includes time spent in states where no item is being interacted with, such as dedicated navigation screens.

Minimum times are applicable to assessmentSections and assessmentItems only when linear navigation mode is in effect.

Author:
Jiri Kajaba
See Also:
Serialized Form

Field Summary
static java.lang.Double ATTR_MAXIMUM_DEFAULT_VALUE
          Default value of maxTime attribute.
static java.lang.String ATTR_MAXIMUM_NAME
          Name of maxTime attribute in xml schema.
static java.lang.Double ATTR_MINIMUM_DEFAULT_VALUE
          Default value of minTime attribute.
static java.lang.String ATTR_MINIMUM_NAME
          Name of minTime attribute in xml schema.
static java.lang.String CLASS_TAG
          Name of this class in xml schema.
 
Fields inherited from interface org.qtitools.qti.node.XmlNode
INDENT, NEW_LINE, SIMPLE_NAME_INNER_SEPARATOR, SIMPLE_NAMES_SEPARATOR
 
Constructor Summary
TimeLimit(ControlObject parent)
          Creates object.
 
Method Summary
 java.lang.String getClassTag()
          Gets QTI class name of this node.
 java.lang.Double getMaximum()
          Gets value of maxTime attribute.
 java.lang.Long getMaximumMillis()
          Gets value of maxTime attribute in millis.
 java.lang.Double getMinimum()
          Gets value of minTime attribute.
 java.lang.Long getMinimumMillis()
          Gets value of minTime attribute in millis or null.
 void setMaximum(java.lang.Double maximum)
          Sets new value of maxTime attribute.
 void setMinimum(java.lang.Double minimum)
          Sets new value of minTime attribute.
protected  ValidationResult validateAttributes()
          Validates attributes of this node.
 
Methods inherited from class org.qtitools.qti.node.AbstractObject
getParent, getParentItem, getParentResult, getParentTest, setParent
 
Methods inherited from class org.qtitools.qti.node.AbstractNode
attrToXmlString, bodyToXmlString, getAttributes, getFullName, getIndent, getNode, getNode, getNode, getNodeGroups, getParentRoot, getSimpleName, 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, getFullName, getNodeGroups, getParentRoot, getSimpleName, 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

CLASS_TAG

public static final java.lang.String CLASS_TAG
Name of this class in xml schema.

See Also:
Constant Field Values

ATTR_MINIMUM_NAME

public static final java.lang.String ATTR_MINIMUM_NAME
Name of minTime attribute in xml schema.

See Also:
Constant Field Values

ATTR_MINIMUM_DEFAULT_VALUE

public static final java.lang.Double ATTR_MINIMUM_DEFAULT_VALUE
Default value of minTime attribute.


ATTR_MAXIMUM_NAME

public static final java.lang.String ATTR_MAXIMUM_NAME
Name of maxTime attribute in xml schema.

See Also:
Constant Field Values

ATTR_MAXIMUM_DEFAULT_VALUE

public static final java.lang.Double ATTR_MAXIMUM_DEFAULT_VALUE
Default value of maxTime attribute.

Constructor Detail

TimeLimit

public TimeLimit(ControlObject parent)
Creates object.

Parameters:
parent - parent of this object
Method Detail

getClassTag

public java.lang.String getClassTag()
Description copied from interface: XmlNode
Gets QTI class name of this node.

QTI class name has very important role during loading/saving nodes.

For example: Java class name is AssessmentTest; QTI class name is assessmentTest.

Specified by:
getClassTag in interface XmlNode
Specified by:
getClassTag in class AbstractNode
Returns:
QTI class name of this node

getMinimum

public java.lang.Double getMinimum()
Gets value of minTime attribute.

Returns:
value of minTime attribute
See Also:
setMinimum(java.lang.Double)

getMinimumMillis

public java.lang.Long getMinimumMillis()
Gets value of minTime attribute in millis or null.

Returns:
value of minTime attribute in millis or null

setMinimum

public void setMinimum(java.lang.Double minimum)
Sets new value of minTime attribute.

Parameters:
minimum - new value of minTime attribute
See Also:
getMinimum()

getMaximum

public java.lang.Double getMaximum()
Gets value of maxTime attribute.

Returns:
value of maxTime attribute
See Also:
setMaximum(java.lang.Double)

getMaximumMillis

public java.lang.Long getMaximumMillis()
Gets value of maxTime attribute in millis.

Returns:
value of maxTime attribute in millis

setMaximum

public void setMaximum(java.lang.Double maximum)
Sets new value of maxTime attribute.

Parameters:
maximum - new value of maxTime attribute
See Also:
getMaximum()

validateAttributes

protected ValidationResult validateAttributes()
Description copied from class: AbstractNode
Validates attributes of this node.

Overrides:
validateAttributes in class AbstractNode
Returns:
result of validation


Copyright © 2009. All Rights Reserved.