no.inspera.services.pedal.sequencing
Class SequencingBuilder

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

public class SequencingBuilder
extends java.lang.Object

SequencingBuilder uses builder pattern to build SequencingEngine object.

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

Constructor Summary
SequencingBuilder()
           
 
Method Summary
 SequencingBuilder addEmpty()
          Adds an empty sequence to the chain.
 SequencingBuilder addSequencingChain(Sequence seq)
          Adds the specified implementation of Sequence to the sequencing chain.
 SequencingEngine build()
          This method is usually called when we are done with building a sequencing engine.
static SequencingBuilder create()
          Creates a new SequencingBuilder.
 SequencingBuilder setLearningStyle(SequencingMetadataItem learningStyle)
          Sets the learning style of a user to the sequencing engine.
 SequencingBuilder 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

SequencingBuilder

public SequencingBuilder()
Method Detail

create

public static SequencingBuilder create()
Creates a new SequencingBuilder.

Returns:
new SequencingBuilder.

setLearningStyle

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

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

setLevelMap

public SequencingBuilder 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 SequencingBuilder addEmpty()
Adds an empty sequence to the chain.

Returns:
SequencingBuilder

addSequencingChain

public SequencingBuilder 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 SequencingEngine build()
This method is usually called when we are done with building a sequencing engine.

Returns:
SequencingEngine that has been built.


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