|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectaminePlatform.kernel.ontology.CS
aminePlatform.kernel.ontology.Situation
aminePlatform.kernel.ontology.Context
Title : ontology.Context Class
Description : A Context is a kind of Situation that is embedded in a description. As a Context, a Situation will play an identical abstraction role as type and individual: [Eat], [Eat :eat1], [Eat =c1] and c1 is a Context Node like Eat (which is a Type node) and eat1 (which is an Individual node). The many advantage and the enhance of the expressive power that is gained with the addition of Context CS is illustrated especially by the addition and integration of complex structures in Amine Ontology.
Copyright: Copyright (c) Adil KABBAJ, 2004-2009
Field Summary |
Fields inherited from class aminePlatform.kernel.ontology.CS |
S_CONTEXT, S_CSRULE, S_SITUATION, S_TYPE |
Constructor Summary | |
Context(CS subject)
|
|
Context(CS subject,
java.lang.Object description)
|
Method Summary | |
java.util.Enumeration |
getDirectSuperContexts()
Get the direct super contexts of the current Context. |
protected void |
getImmSuperContexts(java.util.ArrayList imdtSuperContexts)
|
Context |
getMinComSuperContext(Context context2)
For both minComSuperContext and maxComSubContext, a progressive breadth-first traversal of the ontology is done to get super(sub)contexts of both the current Context and the parameter Context context2. |
CS |
getSubject()
Get the subject of the current Context. |
Type |
getType()
|
static boolean |
isContext(java.lang.Object obj)
Check if the specified Object obj is a Context CS |
void |
setSubject(CS subject)
Set the specified subject as the subject of the current Context |
protected org.jdom.Element |
toContent(Ontology ontology)
For the current Context add the element that specifies its content to the XML ontology document. |
protected org.jdom.Element |
toCSKind(java.lang.String key)
For the current context add the element that specifies its kind to the XML ontology document. |
Methods inherited from class aminePlatform.kernel.ontology.Situation |
getDescription, getIndexingTypes, isSituation, removeDescription, setDescription, toString |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Context(CS subject)
public Context(CS subject, java.lang.Object description)
Method Detail |
public static boolean isContext(java.lang.Object obj)
obj
- An object
public CS getSubject()
public Type getType()
public void setSubject(CS subject)
public Context getMinComSuperContext(Context context2)
context2
- A Context
public java.util.Enumeration getDirectSuperContexts()
protected void getImmSuperContexts(java.util.ArrayList imdtSuperContexts)
protected org.jdom.Element toCSKind(java.lang.String key)
toCSKind
in class Situation
protected org.jdom.Element toContent(Ontology ontology)
toContent
in class Situation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |