|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.inspera.services.pedal.Module
public class Module
Module represents a course module. Any given course consists of several logical modules.
Modules are instantiated when the user logs on to the system. The state of the module is not persisted, which means every time the user logs on the modules are reinitialized. Therefore it is safe, to store the sequencing state which is specific to a user.
Constructor Summary | |
---|---|
Module(long moduleId)
Constructs a new Module object with the specified moduleId |
Method Summary | |
---|---|
void |
addItem(LearningObject learningObject)
Adds this item to the list of available items within this module. |
java.util.Collection<LearningObject> |
getAllItems()
Returns all items within this module. |
SequencingState |
getCurrentState()
Returns the current state of sequenced items. |
LearningObject |
getExample()
Getter for example. |
LearningObject |
getExercise()
Getter for exercise |
LearningObject |
getItem(long id)
Looks up an item with specified id. |
long |
getModuleId()
Getter for moduleId |
LearningObject |
getTheory()
Getter for theory |
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 |
Constructor Detail |
---|
public Module(long moduleId)
moduleId
- the id of module.Method Detail |
---|
public void addItem(LearningObject learningObject)
learningObject
- item to be addedpublic LearningObject getItem(long id)
id
- the id of an item (either theory, exercise or example)
public java.util.Collection<LearningObject> getAllItems()
public LearningObject getExample()
public LearningObject getTheory()
public LearningObject getExercise()
public java.lang.String toString()
toString
in class java.lang.Object
public SequencingState getCurrentState()
public long getModuleId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |