|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclarion.nacs.AssocRule
Constructor Summary | |
AssocRule(short[] con,
short conc,
Global global)
constructor. |
Method Summary | |
int |
calcAssocRuleAppTime()
Compute the rule application time. |
double |
calcBLA(long currentTime)
Compute rule BLA. |
void |
calculateSupport(java.util.Vector con,
double[] weights)
Computes the rule support. |
java.lang.Object |
clone()
methods from class Object |
boolean |
equals(java.lang.Object other)
methods from class Object |
int |
getAge()
Return the age of the rule. |
double |
getBLA()
Returns the rule BLA. |
int |
getConclusion()
Returns the conclusion in terms of chunk index. |
short[] |
getCondition()
Returns the condition in terms of chunk indices on the chunk list in GKS. |
void |
getCondition(short[] con)
Returns the condition in terms of chunk indices on the chunk list in GKS. |
int |
getConditionNum()
Returns the number of chunks in the condition. |
double |
getSupport()
Return the rule support. |
int |
hashCode()
methods from class Object |
void |
increaseAge()
increase the rule age. |
void |
increaseUsage(long currentTime)
update the rule usage. |
boolean |
isCondition(short[] cond)
Check if the specific condition is the rule condition or not. |
boolean |
isInCondition(int cond)
Check if the specific chunk is in the rule condition or not. |
void |
resetAge()
|
void |
setConclusion(short conc)
Sets the rule conclusion in terms of chunk index. |
void |
setCondition(short[] con)
Sets the rule condition in terms of chunk indices. |
void |
setReasoningMethod(int method)
Sets GKS reasoning method. |
java.lang.String |
toString()
methods from class Object |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AssocRule(short[] con, short conc, Global global)
con
- the rule condition in terms of chunk indices on the chunk list in GKS.conc
- the rule conclusion in terms of chunk index on the chunk list in GKS.global
- the associated global settings.Method Detail |
public boolean isInCondition(int cond)
cond
- the specific chunk.
public boolean isCondition(short[] cond)
public int getAge()
public int getConclusion()
public int getConditionNum()
public short[] getCondition()
public void getCondition(short[] con)
con
- the array to store the rule condition.public double getBLA()
public double getSupport()
public void resetAge()
public void increaseAge()
public void setReasoningMethod(int method)
method
- the reasoning method to set.public void setConclusion(short conc)
public void setCondition(short[] con)
public void calculateSupport(java.util.Vector con, double[] weights)
con
- a vector of chunks used to compare the condition to compute
the rule support.weights
- the weights of subcondition for computing the rule support.public void increaseUsage(long currentTime)
currentTime
- current time when this rule is used.public double calcBLA(long currentTime)
currentTime
- current time.public int calcAssocRuleAppTime()
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object other)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface CloneableListElement
java.lang.CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |