no.inspera.services.pedal.sequencing
Class SequencingState

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

public class SequencingState
extends java.lang.Object

SequencingState that holds the sequencing information for a module.

Since:
27.12.2007
Version:
$Id: SequencingState.java 44197 2008-04-03 18:00:10Z naimdjon $
Author:
Naimdjon Takhirov

Constructor Summary
SequencingState(Module module)
          Constructs a new SequencingState for the specified module
 
Method Summary
 void checkAllProcessed(java.util.Collection<LearningObject> learningObjects)
          Checks whether all items in the specified collection are processed.
 LearningObject getCurrentItem()
          Returns the current item in the queue under processing.
 boolean isAllProcessed()
          Checks whether all items in the module are processed.
 boolean isProcessed(LearningObject learningObject)
          Checks whether the specified item is processed.
 void markCurrent(LearningObject learningObject)
          Marks the specifed item as current in the queue of processing items for the module
 void refresh()
          Refreshes the queue of processing items by removing current item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequencingState

public SequencingState(Module module)
Constructs a new SequencingState for the specified module

Parameters:
module - the module of this SequencingState
Method Detail

getCurrentItem

public LearningObject getCurrentItem()
Returns the current item in the queue under processing.

Returns:
the current item in the queue under processing.

markCurrent

public void markCurrent(LearningObject learningObject)
Marks the specifed item as current in the queue of processing items for the module

Parameters:
learningObject - the item to be marked as current

isAllProcessed

public boolean isAllProcessed()
Checks whether all items in the module are processed.

Returns:
true if all items are processed, false otherwise.

refresh

public void refresh()
Refreshes the queue of processing items by removing current item. Calling this method will result in fresh sequencing state..


isProcessed

public boolean isProcessed(LearningObject learningObject)
Checks whether the specified item is processed.

Parameters:
learningObject - item to be checked
Returns:
true if the item is processed, false otherwise.

checkAllProcessed

public void checkAllProcessed(java.util.Collection<LearningObject> learningObjects)
Checks whether all items in the specified collection are processed.

Parameters:
learningObjects - collection of items to be checked.


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