no.inspera.services.pedal.sequencing
Class SequencingEngine

java.lang.Object
  extended by no.inspera.services.pedal.sequencing.SequencingEngine

public class SequencingEngine
extends java.lang.Object

SequencingEngine is the engine that sequences LearningObject in the sequencing chain.

Since:
23.12.2007
Version:
$Id: SequencingEngine.java 44201 2008-04-03 19:48:22Z naimdjon $
Author:
Naimdjon Takhirov

Field Summary
protected  SequencingChain chain
          The sequencing chain.
protected  SequencingMetadataItem learningStyle
          The user's learning style.
protected  java.util.Map<java.lang.Long,PEDAL.Level> levels
          A map of user level for each module.
 
Constructor Summary
SequencingEngine()
           
 
Method Summary
 java.lang.String getLearningStyleProp()
          Returns the learning style metadata element.
 java.lang.String getLearningStyleValue()
          Returns a logical identifier for user's learning style.
 java.lang.String getLevelValue(long moduleId)
          Returns user's level for the specified module.
 Module getModule(long moduleId)
          Returns the module identified by specified moduleId.
 LearningObject sequence(Module module)
          Causes the sequencing of LearningObjects in the chain.
 java.lang.String toString()
          Returns string representation of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

chain

protected SequencingChain chain
The sequencing chain.


learningStyle

protected SequencingMetadataItem learningStyle
The user's learning style.


levels

protected java.util.Map<java.lang.Long,PEDAL.Level> levels
A map of user level for each module. Modules are represented by moduleId key.

Constructor Detail

SequencingEngine

public SequencingEngine()
Method Detail

getLearningStyleValue

public java.lang.String getLearningStyleValue()
Returns a logical identifier for user's learning style.

Returns:
user's learning style.

getLevelValue

public java.lang.String getLevelValue(long moduleId)
Returns user's level for the specified module.

Parameters:
moduleId - module identifier
Returns:
user's level for the specified module.

getLearningStyleProp

public java.lang.String getLearningStyleProp()
Returns the learning style metadata element.

Returns:
the learning style metadata element.

getModule

public Module getModule(long moduleId)
Returns the module identified by specified moduleId.

Parameters:
moduleId - the identifier of the module.
Returns:
Module

toString

public java.lang.String toString()
Returns string representation of this object

Overrides:
toString in class java.lang.Object
Returns:
string representation of this object

sequence

public LearningObject sequence(Module module)
Causes the sequencing of LearningObjects in the chain.

Parameters:
module - LearningObjects in the module to be sequenced
Returns:
next LearningObject


Copyright © 2008 Inspera A/S. All Rights Reserved.