|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.modules.scorm.server.sequence.SequenceManager
public class SequenceManager
A class used to figure out the sequencing for a package. It has methods which the LMS frameset can call to find out what the current state of the package is at any one given time. - ie what item comes next?. This class holds a hashtable of ItemSequence (the class used to house each item). It also holds a PrerequisiteManager - the class used to figure out the AICC script which can be found under the prerequisites section of a scorm package.
| Field Summary | |
|---|---|
static int |
COURSE_COMPLETED_VALUE
Comment for COURSE_COMPLETED_VALUE |
| Constructor Summary | |
|---|---|
SequenceManager(java.lang.String org,
ISettingsHandler settings)
Default constructor |
|
| Method Summary | |
|---|---|
void |
addNewItem(java.lang.String scoId,
java.lang.String launchUrl,
int sequence,
java.lang.String scoType,
java.lang.String title,
java.lang.String prereqs)
Method to populate a single instance of itemsequence with the information found within the settings(navigation) xml file. |
void |
addtoPrereqTable(java.lang.String sco,
java.lang.String status,
boolean persist)
Method to allow us to update our prerequisite table. |
boolean |
checkItemsPrerequisites()
A method to allow us to check if the current item has its prerequisites completed. |
boolean |
checkItemsPrerequisites(java.lang.String itemID)
A method to allow us to check if the current item has its prerequisites completed. |
boolean |
doesItemExist(java.lang.String item)
Check if an item actaully exists |
java.lang.String |
findFirstItemToLaunch()
Method to figure out, what the first item is to be launched when the package is played. |
java.lang.String |
findItemFromIndex(int index)
A method to find a scoID from the itemsequence hashtable, based on an index (number). |
java.lang.String |
getCurrentSco()
Method to allow us to get the current sco ID |
ItemSequence |
getItem(java.lang.String itemId)
A Method to get a itemsequence, based on its scoID (which also happens to be its key) |
java.lang.String |
getLaunchFromId(java.lang.String scoIdentifier)
Methos to return the correct launch url for this sco |
java.lang.String[][] |
getPackageStatus()
|
int |
getSequenceFromId(java.lang.String scoIdentifier)
Given a identifier - return the items sequence |
boolean |
hasItemBeenCompleted(java.lang.String scoID)
Method to check if an item has been completed |
boolean |
isFirstItem(java.lang.String scoIdentifier)
Method to find out if requested sco is the first item in the course |
boolean |
isItemSco(java.lang.String itemId)
Check if an item is a sco or not |
boolean |
isLastItem(java.lang.String scoIdentifier)
Method to find out if requested sco is the last item in the course |
void |
setCurrentSco(java.lang.String _sco)
Method to allow us to set the current sco |
void |
showPreReqTable()
Method to ask the prerequisite manager to show the prerequisite table. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int COURSE_COMPLETED_VALUE
COURSE_COMPLETED_VALUE
| Constructor Detail |
|---|
public SequenceManager(java.lang.String org,
ISettingsHandler settings)
org - | Method Detail |
|---|
public java.lang.String findFirstItemToLaunch()
public java.lang.String[][] getPackageStatus()
public boolean hasItemBeenCompleted(java.lang.String scoID)
scoID -
public void showPreReqTable()
public boolean checkItemsPrerequisites()
public boolean checkItemsPrerequisites(java.lang.String itemID)
itemID -
public boolean doesItemExist(java.lang.String item)
item -
public void addtoPrereqTable(java.lang.String sco,
java.lang.String status,
boolean persist)
sco - status - persist - public void setCurrentSco(java.lang.String _sco)
_sco - public java.lang.String getCurrentSco()
public ItemSequence getItem(java.lang.String itemId)
itemId -
public boolean isItemSco(java.lang.String itemId)
itemId -
public void addNewItem(java.lang.String scoId,
java.lang.String launchUrl,
int sequence,
java.lang.String scoType,
java.lang.String title,
java.lang.String prereqs)
scoId - - actual scoIDlaunchUrl - - the launchsequence - - this scos order or sequencescoType - - SCO or Assettitle - - The title of this sco (found in manifest prereqs - - any prerequisites for this scopublic java.lang.String getLaunchFromId(java.lang.String scoIdentifier)
scoIdentifier -
public int getSequenceFromId(java.lang.String scoIdentifier)
scoIdentifier -
public java.lang.String findItemFromIndex(int index)
index - (number)
public boolean isFirstItem(java.lang.String scoIdentifier)
scoIdentifier -
public boolean isLastItem(java.lang.String scoIdentifier)
scoIdentifier -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||