no.inspera.services.pedal.engine
Class AdaptiveEngine

java.lang.Object
  extended by no.inspera.services.pedal.engine.AdaptiveEngine

public class AdaptiveEngine
extends java.lang.Object

AdaptiveEngine is the engine that adapts LearningObject in the sequencing chain.

Since:
23.12.2007
Version:
$Id: AdaptiveEngine.java 45074 2008-05-29 10:04:54Z naimdjon $
Author:
Naimdjon Takhirov

Field Summary
protected  Chain 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
AdaptiveEngine()
           
 
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 Chain 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

AdaptiveEngine

public AdaptiveEngine()
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 Naimdjon Takhirov (naimdjon@gmail.com). All Rights Reserved.