org.qtitools.qti.node.result
Enum SessionStatus

java.lang.Object
  extended by java.lang.Enum<SessionStatus>
      extended by org.qtitools.qti.node.result.SessionStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SessionStatus>

public enum SessionStatus
extends java.lang.Enum<SessionStatus>

The session status is used to keep track of the status of the item variables in an item session.

Possible values: initial, pendingSubmission, pendingResponseProcessing, final

Author:
Jiri Kajaba

Enum Constant Summary
FINAL
          The value to use when the item variables represent the values at the end of an attempt after response processing has taken place.
INITIAL
          The value to use for sessions in the initial state, as described above.
PENDING_RESPONSE_PROCESSING
          The value to use when the item variables represent the values of the response variables after submission but before response processing has taken place.
PENDING_SUBMISSION
          The value to use when the item variables represent A snapshot of the current values during an attempt (in other words, while interacting or suspended).
 
Field Summary
static java.lang.String CLASS_TAG
          Name of this class in xml schema.
 
Method Summary
static SessionStatus parseSessionStatus(java.lang.String sessionStatus)
          Returns parsed SessionStatus from given String.
 java.lang.String toString()
           
static SessionStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SessionStatus[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INITIAL

public static final SessionStatus INITIAL
The value to use for sessions in the initial state, as described above. This value can only be used to describe sessions for which the response variable numAttempts is 0. The values of the variables are set according to the rules defined in the appropriate declarations (see responseDeclaration, outcomeDeclaration and templateDeclaration).


PENDING_SUBMISSION

public static final SessionStatus PENDING_SUBMISSION
The value to use when the item variables represent A snapshot of the current values during an attempt (in other words, while interacting or suspended). The values of the response variables represent work in progress that has not yet been submitted for response processing by the candidate. The values of the outcome variables represent the values assigned during response processing at the end of the previous attempt or, in the case of the first attempt, the default values given in the variable declarations.


PENDING_RESPONSE_PROCESSING

public static final SessionStatus PENDING_RESPONSE_PROCESSING
The value to use when the item variables represent the values of the response variables after submission but before response processing has taken place. Again, the outcomes are those assigned at the end of the previous attempt as they are awaiting response processing.


FINAL

public static final SessionStatus FINAL
The value to use when the item variables represent the values at the end of an attempt after response processing has taken place. In other words, after the outcome values have been updated to reflect the values of the response variables.

Field Detail

CLASS_TAG

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

See Also:
Constant Field Values
Method Detail

values

public static final SessionStatus[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(SessionStatus c : SessionStatus.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static SessionStatus valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<SessionStatus>

parseSessionStatus

public static SessionStatus parseSessionStatus(java.lang.String sessionStatus)
                                        throws QTIParseException
Returns parsed SessionStatus from given String.

Parameters:
sessionStatus - String representation of SessionStatus
Returns:
parsed SessionStatus from given String
Throws:
QTIParseException - if given String is not valid SessionStatus


Copyright © 2009. All Rights Reserved.