|
||||||||||
| 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.item.response.declaration.AreaMapping
public class AreaMapping
A special class used to create a mapping from a source set of point values to a target set of float values. When mapping containers, the result is the sum of the mapped values from the target set. See mapResponsePoint for details. The attributes have the same meaning as the similarly named attributes on mapping.
for details.,
Serialized Form| Field Summary | |
|---|---|
static double |
ATTR_DEFAULT_VALUE_DEFAULT_VALUE
Default value of the defaultValue attribute |
static java.lang.String |
ATTR_DEFAULT_VALUE_NAME
Name of defaultValue attribute in xml schema. |
static java.lang.String |
ATTR_LOWER_BOUND_NAME
Name of lowerBound attribute in xml schema. |
static java.lang.String |
ATTR_UPPER_BOUND_NAME
Name of upperBound 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 | |
|---|---|
AreaMapping(ResponseDeclaration parent)
Creates object. |
|
| Method Summary | |
|---|---|
java.util.List<AreaMapEntry> |
getAreaMapEntries()
Gets areaMapEntry children. |
java.lang.String |
getClassTag()
Gets QTI class name of this node. |
java.lang.Double |
getDefaultValue()
Gets value of defaultValue attribute. |
java.lang.Double |
getLowerBound()
Gets value of lowerBound attribute. |
ResponseDeclaration |
getParent()
Gets parent of this node or null (if node is root; for example AssessmentTest). |
FloatValue |
getTargetValue(Value sourceValue)
Gets target value for given source value. |
java.lang.Double |
getUpperBound()
Gets value of upperBound attribute. |
void |
setDefaultValue(java.lang.Double defaultValue)
Sets new value of defaultValue attribute. |
void |
setLowerBound(java.lang.Double lowerBound)
Sets new value of lowerBound attribute. |
void |
setUpperBound(java.lang.Double upperBound)
Sets new value of upperBound attribute. |
ValidationResult |
validate()
Validates this object. |
| 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, 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, validateAttributes, 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 |
| Field Detail |
|---|
public static final java.lang.String CLASS_TAG
public static final java.lang.String ATTR_LOWER_BOUND_NAME
public static final java.lang.String ATTR_UPPER_BOUND_NAME
public static final java.lang.String ATTR_DEFAULT_VALUE_NAME
public static final double ATTR_DEFAULT_VALUE_DEFAULT_VALUE
| Constructor Detail |
|---|
public AreaMapping(ResponseDeclaration parent)
parent - parent of this object| Method Detail |
|---|
public java.lang.String getClassTag()
XmlNodeQTI class name has very important role during loading/saving nodes.
For example: Java class name is AssessmentTest; QTI class name is assessmentTest.
getClassTag in interface XmlNodegetClassTag in class AbstractNodepublic ResponseDeclaration 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 java.lang.Double getDefaultValue()
setDefaultValue(java.lang.Double)public void setDefaultValue(java.lang.Double defaultValue)
defaultValue - new value of defaultValue attributegetDefaultValue()public java.lang.Double getLowerBound()
setLowerBound(java.lang.Double)public void setLowerBound(java.lang.Double lowerBound)
lowerBound - new value of lowerBound attributegetLowerBound()public java.lang.Double getUpperBound()
setUpperBound(java.lang.Double)public void setUpperBound(java.lang.Double upperBound)
upperBound - new value of upperBound attributegetUpperBound()public java.util.List<AreaMapEntry> getAreaMapEntries()
public ValidationResult validate()
Validatable
validate in interface Validatablevalidate in class AbstractNodepublic FloatValue getTargetValue(Value sourceValue)
sourceValue - given source value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||