org.intuitel.slom
public class KnowledgeObject extends Object
The SLOM course description establishes that the course content is organized as Concept Containers at a higher level, and Knowledge Objects at a lower level of abstraction. That is, the Concept Container contains several Knowledge Objects, which contain the actual course material.
Knowledge Objects refers to a particular Concept Container, and are sequence by means of Micro Learning Pathways. Knowledge Object contain metadata description given by a list of properties.
This class provides a Java representation of the Knowledge Object.
Further information of the SLOM format can be found at the INTUITEL project page, at deliverable D4.1
Constructor and Description |
---|
KnowledgeObject(String id)
Creates an empty KnowledgeObject.
|
Modifier and Type | Method and Description |
---|---|
void |
addMicroLP(MicroLP mlp)
Adds one MicroLP to this KnowledgeObject.
|
void |
addProperty(String k,
String v)
Adds one property to this KnowledgeObject.
|
boolean |
equals(Object o)
Two KnowledgeObject are equal if they have the same id.
|
String |
getId()
Gets the title of this KnowledgeObject.
|
ArrayList<MicroLP> |
getMicroLPs()
Gets the list of MicroLPs in this KnowledgeObject.
|
Map<String,String> |
getProperties()
Gets all properties of this KnowledgeObject.
|
String |
getProperty(String s)
Gets the properties in this KnowledgeObject with the given key.
|
int |
hashCode() |
void |
printKO()
Prints in the standard output a textual description of this KnowledgeObject.
|
void |
setId(String id)
Sets the id of this KnowledgeObject.
|
void |
setMicroLPs(ArrayList<MicroLP> microLPs)
Sets the list of MicroLPs in this KnowledgeObject.
|
String |
toString()
Provides a textual description of this KnowledgeObject.
|
public KnowledgeObject(String id)
Creates a KnowledgeObject object, with the id given as parameter and with empty lists of properties and MicroLPs
Therefore, ConceptContainer configuration is required to complete the object setup
id
- The id of the ConceptContainerpublic String getId()
public void setId(String id)
id
- The id to set.public ArrayList<MicroLP> getMicroLPs()
public void setMicroLPs(ArrayList<MicroLP> microLPs)
microLPs
- A list with the MicroLP to include in this KnowledgeObjectpublic void addProperty(String k, String v)
k
- the name of the property to addv
- the value of the property to addpublic Map<String,String> getProperties()
Properties are modelled as a Java Map. In order to get a certain property, the developers using this function may write:
Map m = myKnowledgeObject.getProperties(); String thePropertyValue = m.get(thePropertyName);
public String getProperty(String s)
Searches the property whose key matches with s and returns it value.
public void addMicroLP(MicroLP mlp)
mlp
- The MicroLP to addpublic void printKO()
The information printed includes the id and a list of all the properties, presented as key-value pairs.
public String toString()
The textual description of this KnowledgeObject contains its id and a list of all the properties, presented as key-value pairs.
public boolean equals(Object o)
Copyright © 2014. All rights reserved.