|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.ontology.util.ConceptTranslator
public final class ConceptTranslator
Implements static methods in order to store various mappings between concepts defined in agent systems and terms defined in KAoS ontologies. It also defines methods to translate the concepts of the agent system contained in KAoSEntityDescription and ActionInstanceDescription into their equivalents in KAoS ontologies.
Field Summary | |
---|---|
static java.lang.String |
KAOS_MAPPING
|
Method Summary | |
---|---|
protected static void |
printDebugString(java.lang.String msg,
int loggerDisplayLevel)
Print debug messages. |
static boolean |
setMapping(java.lang.String mappingName,
java.lang.String fileNameLoc)
Load the mapping, whose name and location are given. |
static ActionInstanceDescription |
translateAID(ActionInstanceDescription originalAID)
Translate ontological concepts contained by the given ActionInstanceDescription into concepts used in KAoS ontologies. |
static java.lang.String |
translateConceptInMapping(java.lang.String conceptName,
java.lang.String mappingName)
Translate the given concept using the specified mapping into a concept used in KAoS ontologies. |
static KAoSEntityDescription |
translateKAoSEntityDescription(KAoSEntityDescription desc)
Translate ontological concepts contained by the given KAoSEntityDescription into concepts used in KAoS ontologies. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String KAOS_MAPPING
Method Detail |
---|
public static boolean setMapping(java.lang.String mappingName, java.lang.String fileNameLoc)
mappingName
- The String specifying the name of the mapping.fileNameLoc
- The String specifying the name and path of the file containing the mapping.
public static ActionInstanceDescription translateAID(ActionInstanceDescription originalAID)
originalAID
- The ActionInstanceDescription containing concepts from the agent system to be translated
into concepts used in KAoS ontology.
public static java.lang.String translateConceptInMapping(java.lang.String conceptName, java.lang.String mappingName)
conceptName
- The String specifying the given concept.mappingName
- The String specifying the mapping to be used in translation.
public static KAoSEntityDescription translateKAoSEntityDescription(KAoSEntityDescription desc)
desc
- The KAoSEntityDescription containing concepts from the agent system to be translated
into concepts used in KAoS ontology.
protected static void printDebugString(java.lang.String msg, int loggerDisplayLevel)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |