org.intuitel.slom
public class MicroLP extends Object
The SLOM course description establishes that Knowledge Objects are sequenced with Micro Learning Pathways.
Each Micro Learning Pathway contains a collection of Knowledge Objects and also the relationships among them.
This class provides a Java representation of the Micro Learning Pathway.
Further information of the SLOM format can be found at the INTUITEL project page, at deliverable D4.1
Constructor and Description |
---|
MicroLP(String name)
Creates an empty MicroLP.
|
MicroLP(String name,
String id)
Creates an empty MicroLP.
|
Modifier and Type | Method and Description |
---|---|
void |
addKnowledgeObject(KnowledgeObject knowledgeObject)
Adds a knowledge object to this MicroLP.
|
void |
addKnowledgeObjectRelationship(KnowledgeObjectRelationship kor)
Adds a knowledge object relationship to this MicroLP.
|
boolean |
equals(Object o)
Two MicroLP are equal if the have the same name.
|
String |
getDescription()
Returns the description of this MicroLP.
|
String |
getId()
Returns the id of this MicroLP.
|
List<KnowledgeObjectRelationship> |
getKnowledgeObjectRelationships()
Returns a set with the KnowledgeObjectRelationships in this this MicroLP.
|
Set<KnowledgeObject> |
getKnowledgeObjects()
Returns a set with the KnowledgeObjects in this this MicroLP.
|
List<String> |
getKnowledgeObjectsAsString()
Provides a list of Strings representing the KnowledgeObjects in this MicroLP.
|
String |
getName()
Returns the name of this MicroLP.
|
String |
getPathToDiagramFile() |
String |
getPredefinedMicroLP() |
void |
removeDuplicates()
Cleans the list of knowledgeObjects in this MicroLP by removing duplicates.
|
void |
setDescription(String description)
Establishes the description of this MacroLP.
|
void |
setId(String id)
Establishes the identifier of this MicroLP.
|
void |
setKnowledgeObjectRelationships(ArrayList<KnowledgeObjectRelationship> knowledgeObjectRelationships)
Establishes the KnowledgeObjectRelationships of this MicroLP.
|
void |
setKnowledgeObjects(Set<KnowledgeObject> knowledgeObjects)
Establishes the KnowledgeObjects of this MicroLP.
|
void |
setName(String name)
Establishes the name of this MicroLP.
|
void |
setPathToDiagramFile(String pathToDiagramFile) |
void |
setPredefinedMicroLP(String predefinedMicroLP) |
String |
toString()
Provides a textual description of this MicroLP.
|
public MicroLP(String name)
Creates a MicroLP object, with the name given as parameter and with empty lists of KnowledgeObject and KnowledgeObjectRelationship
Therefore, MicroLP configuration is required to complete the object setup
name
- The name of the MicroLPpublic MicroLP(String name, String id)
Creates a MicroLP object, with the name given as parameter and with empty lists of KnowledgeObject and KnowledgeObjectRelationship
Therefore, MicroLP configuration is required to complete the object setup
name
- The name of the MicroLPid
- The id of the MicroLPpublic String toString()
The textual description of this MicroLP contains its name and a list of the textual description of all KnowledgeObjectRelationships and KnowledgeObjects in the MicroLP
public boolean equals(Object o)
public String getId()
public void setId(String id)
id
- The String to be set as identifier.public String getName()
public void setName(String name)
name
- The String to be set as name.public String getDescription()
public void setDescription(String description)
description
- The String to be set as description.public Set<KnowledgeObject> getKnowledgeObjects()
public void setKnowledgeObjects(Set<KnowledgeObject> knowledgeObjects)
knowledgeObjects
- a list witht the KnowledgeObject to set.public void addKnowledgeObject(KnowledgeObject knowledgeObject)
knowledgeObject
- The KnowledgeObject to addpublic List<KnowledgeObjectRelationship> getKnowledgeObjectRelationships()
public void setKnowledgeObjectRelationships(ArrayList<KnowledgeObjectRelationship> knowledgeObjectRelationships)
knowledgeObjectRelationships
- a list witht the KnowledgeObjectRelationship to set.public void addKnowledgeObjectRelationship(KnowledgeObjectRelationship kor)
kor
- The KnowledgeObjectRelationship to addpublic List<String> getKnowledgeObjectsAsString()
Builds and returns a list of the textual representation of the KnowledgeObjects in this MicroLP.
public void removeDuplicates()
public String getPathToDiagramFile()
public void setPathToDiagramFile(String pathToDiagramFile)
public String getPredefinedMicroLP()
public void setPredefinedMicroLP(String predefinedMicroLP)
Copyright © 2014. All rights reserved.