|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclarion.nacs.AssocRuleGrp
Constructor Summary | |
AssocRuleGrp(int id,
Global g)
constructor. |
Method Summary | |
java.lang.Object |
clone()
methods from class Object |
double |
drawConclusion(java.util.Vector con)
Draws conclusion triggered by the specific list of chunk indices as condition. |
short[][] |
getActiveRuleConditions()
Returns the conditions of the active rules. |
int |
getAssocRuleAppTime()
Returns the rule application time. |
int |
getGroupID()
Returns the group ID. |
short[][] |
getRuleConditions()
Returns the conditions of the rules. |
int |
getRuleNum()
Returns the number of the rules. |
List |
getRules()
Returns the rule list. |
boolean |
insertRule(short[] condition,
short conclusion)
insert a rule with the specific condition and conclusion in terms of the chunk indices on the chunk list in GKS. |
boolean |
removeCondition(int chunkIdx)
Removes any rule which condition contains the specific chunk index. |
boolean |
removeRule(short[] condition,
short conclusion)
Remove a rule with the specific condition and conclusion in terms of the chunk indices on the chunk list in GKS. |
boolean |
searchRule(short[] condition)
Searches a rule with the specific condition in terms fo an array of chunk indices. |
void |
setCurrentTime(long curTime)
Sets the current time. |
void |
setMaxRuleAge(int age)
Sets the maximal age of a rule. |
void |
setReasoningMethod(int method)
Sets GKS reasoning method. |
void |
setRules(LinkedList list)
Sets the rule list. |
java.lang.String |
toString()
methods from class Object |
void |
update()
update routine. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AssocRuleGrp(int id, Global g)
id
- the group ID.g
- the associated global settings.Method Detail |
public int getGroupID()
public int getRuleNum()
public List getRules()
public short[][] getRuleConditions()
public short[][] getActiveRuleConditions()
public int getAssocRuleAppTime()
public void setReasoningMethod(int method)
method
- the reasoning method to set.public void setMaxRuleAge(int age)
age
- the age to set.public void setCurrentTime(long curTime)
curTime
- current time.public void setRules(LinkedList list)
list
- the rule list to set.public boolean insertRule(short[] condition, short conclusion)
condition
- the rule condition.conclusion
- the rule conclusion.public boolean removeRule(short[] condition, short conclusion)
condition
- the rule condition.conclusion
- the rule conclusion.public boolean removeCondition(int chunkIdx)
chunkIdx
- the chunk index.
public double drawConclusion(java.util.Vector con)
public boolean searchRule(short[] condition)
condition
- the rule condition.public void update()
public java.lang.String toString()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |