no.inspera.services.pedal.engine
Class EngineBuilder

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

public class EngineBuilder
extends java.lang.Object

SequencingBuilder uses builder pattern to build SequencingEngine object.

Since:
27.12.2007
Version:
$Id: EngineBuilder.java 45069 2008-05-29 08:25:25Z naimdjon $
Author:
Naimdjon Takhirov

Constructor Summary
EngineBuilder()
           
 
Method Summary
 EngineBuilder addEmpty()
          Adds an empty sequence to the chain.
 EngineBuilder addSequencingChain(Sequence seq)
          Adds the specified implementation of Sequence to the sequencing chain.
 AdaptiveEngine build()
          This method is usually called when we are done with building a sequencing engine.
static EngineBuilder create()
          Creates a new SequencingBuilder.
 EngineBuilder setLearningStyle(SequencingMetadataItem learningStyle)
          Sets the learning style of a user to the sequencing engine.
 EngineBuilder setLevelMap(java.util.Map<java.lang.Long,PEDAL.Level> levelMap)
          Sets the mapping of module to learner level.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EngineBuilder

public EngineBuilder()
Method Detail

create

public static EngineBuilder create()
Creates a new SequencingBuilder.

Returns:
new SequencingBuilder.

setLearningStyle

public EngineBuilder setLearningStyle(SequencingMetadataItem learningStyle)
Sets the learning style of a user to the sequencing engine.

Parameters:
learningStyle - the user learning style.
Returns:
SequencingBuilder

setLevelMap

public EngineBuilder setLevelMap(java.util.Map<java.lang.Long,PEDAL.Level> levelMap)
Sets the mapping of module to learner level.

Parameters:
levelMap - the level mapping.
Returns:
SequencingBuilder

addEmpty

public EngineBuilder addEmpty()
Adds an empty sequence to the chain.

Returns:
SequencingBuilder

addSequencingChain

public EngineBuilder addSequencingChain(Sequence seq)
Adds the specified implementation of Sequence to the sequencing chain.

Parameters:
seq - the sequence to be added to the chain.
Returns:
SequencingBuilder

build

public AdaptiveEngine build()
This method is usually called when we are done with building a sequencing engine.

Returns:
SequencingEngine that has been built.


Copyright © 2008 Naimdjon Takhirov (naimdjon@gmail.com). All Rights Reserved.