|
||||||||||
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.CSRule
Title: CSRule Class
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 | |
CSRule()
Create an 'empty' CS Rule |
|
CSRule(java.lang.Object antecedent)
Create a new CSRule with the specified antecedent. |
|
CSRule(java.lang.Object antecedent,
java.lang.Object consequence)
Create a new CSRule with the specified antecedent and consequence. |
Method Summary | |
void |
clear()
Clear the content of the current CSRule |
void |
finalize()
clear the fathers and children lists as well as the description of the current CS. |
java.lang.Object |
getAntecedent()
Get the antecedent of the current CSRule. |
java.lang.Object |
getConsequence()
Get the consequence of the current CSRule. |
static boolean |
isCSRule(java.lang.Object obj)
Check if the specified Object obj is a CSRule |
void |
removeAntecedent()
Remove the antecedent of the current CSRule. |
void |
removeConsequence()
Remove the description of the consequence of the current CSRule. |
void |
setAntecedent(java.lang.Object antecedent)
Set the antecedent of the current CSRule to the specified antecedent. |
void |
setConsequence(java.lang.Object description)
Set the consequence of the current CSRule to description. |
protected org.jdom.Element |
toContent(Ontology ontology)
For the current Regle add the element that specifies its content to the XML ontology document. |
protected org.jdom.Element |
toCSKind(java.lang.String key)
For the current CSRule add the element that specifies its kind to the XML ontology document. |
java.lang.String |
toString(Lexicon lexicon)
Implement the method toString(Lexicon) specified in the interface ToString. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CSRule()
public CSRule(java.lang.Object antecedent, java.lang.Object consequence)
antecedent
- The antecedent of the current CSRule. It could be null.consequence
- The consequence of the current CSRule. It could be null.public CSRule(java.lang.Object antecedent)
antecedent
- The antecedent of the current CSRule. It could be null.Method Detail |
public void finalize()
CS
finalize
in class CS
public void clear()
clear
in class CS
public static boolean isCSRule(java.lang.Object obj)
obj
- An object
public java.lang.Object getAntecedent()
public void setAntecedent(java.lang.Object antecedent)
antecedent
- The (new) antecedent of the current CSRulepublic void removeAntecedent()
public java.lang.Object getConsequence()
public void setConsequence(java.lang.Object description)
description
- The (new) description of the consequence of the current CSRulepublic void removeConsequence()
public java.lang.String toString(Lexicon lexicon) throws ToStringException
CS
toString
in interface ToString
toString
in class CS
lexicon
- Lexicon to use for the textual formulation
ToStringException
protected org.jdom.Element toCSKind(java.lang.String key)
toCSKind
in class CS
key
-
protected org.jdom.Element toContent(Ontology ontology)
toContent
in class CS
ontology
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |