org.olat.ims.qti.container
Class SectionContext

java.lang.Object
  extended by org.olat.ims.qti.container.SectionContext
All Implemented Interfaces:
java.io.Serializable

public class SectionContext
extends java.lang.Object
implements java.io.Serializable

Author:
Potable Shop
See Also:
Serialized Form

Constructor Summary
SectionContext()
          default constructor needed for persistence
 
Method Summary
 void eval()
          Method eval.
 ItemContext getCurrentItemContext()
          Method getCurrentItemContext.
 int getCurrentItemContextPos()
          Returns the currentItemContextPos.
 int getCutValue()
           
 long getDuration()
          Get the time to completion for this section
 long getDurationLimit()
          Get the time limit set on this section
 java.lang.String getIdent()
           
 ItemContext getItemContext(int pos)
           
 ItemContext getItemContext(java.lang.String sIdent)
          Method getItemContext.
 int getItemContextCount()
           
 java.util.List getItemContextsToRender()
           
 int getItemsAttemptedCount()
           
 int getItemsPresentedCount()
           
 long getLatestAnswerTime()
          Returns the timeOfStop.
 float getMaxScore()
           
 Objectives getObjectives()
           
 Output getOutput()
           
 float getScore()
           
 java.util.List getSectionItemContexts()
          Returns the sectionItems.
 long getTimeOfStart()
          Returns the timeOfStart.
 java.lang.String getTitle()
           
 void init()
           
 boolean isFeedbackavailable()
           
 boolean isOpen()
          checks whether the user may still submit answers
 boolean isStarted()
           
 boolean onTime()
           
 void sectionWasSubmitted()
           
 void setCurrentItemContextPos(int currentItemContextPos)
          Sets the currentItemContextPos.
 void setUp(AssessmentInstance assessInstance, org.dom4j.Element el_section, Switches sw)
           
 void start()
          Start duration counters.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SectionContext

public SectionContext()
default constructor needed for persistence

Method Detail

init

public void init()

start

public void start()
Start duration counters.


sectionWasSubmitted

public void sectionWasSubmitted()

eval

public void eval()
Method eval.


setUp

public void setUp(AssessmentInstance assessInstance,
                  org.dom4j.Element el_section,
                  Switches sw)
Parameters:
assessInstance -
el_section -
sw -

getItemContextsToRender

public java.util.List getItemContextsToRender()
Returns:
List of ItemContext instances

getScore

public float getScore()
Returns:

getIdent

public java.lang.String getIdent()
Returns:

getTitle

public java.lang.String getTitle()
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

getSectionItemContexts

public java.util.List getSectionItemContexts()
Returns the sectionItems.

Returns:
List

getItemContext

public ItemContext getItemContext(java.lang.String sIdent)
Method getItemContext.

Parameters:
sIdent -
Returns:
ItemContext

getItemsAttemptedCount

public int getItemsAttemptedCount()
Returns:

getItemsPresentedCount

public int getItemsPresentedCount()
Returns:

getItemContextCount

public int getItemContextCount()
Returns:

getCurrentItemContextPos

public int getCurrentItemContextPos()
Returns the currentItemContextPos.

Returns:
int

setCurrentItemContextPos

public void setCurrentItemContextPos(int currentItemContextPos)
Sets the currentItemContextPos.

Parameters:
currentItemContextPos - The currentItemContextPos to set

getCurrentItemContext

public ItemContext getCurrentItemContext()
Method getCurrentItemContext.

Returns:
Element

isOpen

public boolean isOpen()
checks whether the user may still submit answers

Returns:

onTime

public boolean onTime()
Returns:

isStarted

public boolean isStarted()
Returns:

getItemContext

public ItemContext getItemContext(int pos)
Parameters:
pos -
Returns:

getTimeOfStart

public long getTimeOfStart()
Returns the timeOfStart.

Returns:
long

getLatestAnswerTime

public long getLatestAnswerTime()
Returns the timeOfStop.

Returns:
long

getDurationLimit

public long getDurationLimit()
Get the time limit set on this section

Returns:

getDuration

public long getDuration()
Get the time to completion for this section

Returns:

getMaxScore

public float getMaxScore()
Returns:

getOutput

public Output getOutput()
Returns:
Output

isFeedbackavailable

public boolean isFeedbackavailable()
Returns:
boolean

getObjectives

public Objectives getObjectives()

getCutValue

public int getCutValue()