|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclarion.common.RuleAttributes
Field Summary | |
protected boolean |
acsRuleFlag
ACS rule or NACS rule. |
protected int |
actionTime
RT variables. |
protected int |
age
age from last application of this rule. |
protected int |
assocAppTime
associative application time. |
protected double |
BLA
the parameters for BLA. |
protected int |
blaOption
base-level activation option: constant or variable. |
protected double |
c
the parameters for BLA. |
protected double |
chunkBLA
parameters for chunk retrieval time. |
protected double |
d
the parameters for BLA. |
protected Global |
global
global settings. |
protected double |
iBLA
the parameters for BLA. |
protected int |
MAX_USAGE_NUM
maxmal number of usage. |
protected int |
netIdx
the net index. |
protected double |
NM
parameters for utility. |
protected double |
PM
parameters for utility. |
protected int |
ruleSet
the rule set the rule belongs to. |
protected int |
ruleType
the rule type. |
protected double |
t0
parameters for chunk retrieval time. |
protected double |
t1
parameters for chunk retrieval time. |
protected TaskClarion |
taskClarion
task-specific clarion settings. |
protected int |
TLDT
RT variables. |
protected int |
TLPT
RT variables. |
protected int |
TLRT
RT variables. |
protected int[] |
usages
the variables for calculating the BLA. |
protected int |
usedNum
the variables for calculating the BLA. |
protected double |
utility
parameters for utility. |
protected int |
utlOption
utility option. |
Constructor Summary | |
RuleAttributes(Global global)
constructor. |
|
RuleAttributes(int netIdx,
int ruleType,
int ruleSet,
Global global)
constructor. |
Method Summary | |
void |
calcAssocRuleAppTime()
calculate the associative rule application time for one iteration. |
void |
calcBLA(int curTime)
calcluate the BLA. |
void |
calcTLAT(boolean flag,
int chunkRetrTime)
calculate the TL Decision Time given chunk BLA. |
void |
calcTLDT(double chunkBLA)
calculate the TL Decision Time given chunk BLA. |
void |
calcTLRT(int TL_AT)
calculate the response time given the top-level actuation time. |
void |
calcUtility(double cost)
calcluate the utility. |
java.lang.Object |
clone()
methods from class Object |
void |
discountMatches(double discount)
discount the matches using the given discount value. |
int |
getAge()
returns age from last application of this rule. |
int |
getAssocRuleAppTime()
returns associative rule application time. |
double |
getBLA()
returns the BLA of this rule. |
double |
getNM()
returns number of negative matches of this rule. |
double |
getPM()
returns number of positive matches of this rule. |
int |
getResponseTime()
returns current response time. |
double |
getUtility()
returns the utility of this rule. |
void |
reinit()
reinitalization routine. |
void |
resetMatches()
reset the matches. |
void |
setAge(int age)
set age of this rule. |
void |
setChunkBLA(double val)
set chunk BLA. |
void |
setNM(double NM)
set negative matches. |
void |
setPM(double PM)
set positive matches. |
void |
setUsages(int[] arr)
set info of usages of this rule. |
void |
setUsedNum(int usedNum)
set number of usages of this rule. |
void |
updateAge()
update the age. |
void |
updateMatches(boolean flag)
update the matches. |
void |
updateMatches(int matchType)
update the matches. |
void |
updateUsages(int curTime)
update the usage info. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Global global
protected TaskClarion taskClarion
protected boolean acsRuleFlag
protected int netIdx
protected int ruleType
protected int ruleSet
protected int age
protected int TLRT
protected int TLPT
protected int TLDT
protected int actionTime
protected int assocAppTime
protected double t0
protected double t1
protected double chunkBLA
protected int blaOption
protected int MAX_USAGE_NUM
protected int usedNum
protected int[] usages
protected double BLA
protected double c
protected double d
protected double iBLA
protected int utlOption
protected double utility
protected double PM
protected double NM
Constructor Detail |
public RuleAttributes(Global global)
global
- the associated global settings.public RuleAttributes(int netIdx, int ruleType, int ruleSet, Global global)
netIdx
- the network index this rule belongs to.ruleType
- rule type.ruleSet
- rule set this rule belongs to.global
- the associated global settings.Method Detail |
public void reinit()
public int getAge()
public double getPM()
public double getNM()
public double getUtility()
public double getBLA()
public int getResponseTime()
public int getAssocRuleAppTime()
public void setAge(int age)
age
- the value to set.public void setPM(double PM)
PM
- the value to set.public void setNM(double NM)
public void setUsedNum(int usedNum)
usedNum
- the value to set.public void setUsages(int[] arr)
arr
- the value to set.public void setChunkBLA(double val)
val
- the value to set.public void resetMatches()
public void discountMatches(double discount)
public void calcTLRT(int TL_AT)
TL_AT
- the top-level acuation time.public void calcTLDT(double chunkBLA)
chunkBLA
- the relevant chunk BLA.public void calcTLAT(boolean flag, int chunkRetrTime)
flag
- the flag indicates involving NACS or not.chunkRetrTime
- the relevant chunk retrieval time.public void calcAssocRuleAppTime()
public void calcUtility(double cost)
cost
- the cost of using this rule.public void calcBLA(int curTime)
curTime
- current time.public void updateAge()
public void updateMatches(boolean flag)
flag
- indicates positive or negative matches.public void updateMatches(int matchType)
matchType
- indicates positive or negative matches.public void updateUsages(int curTime)
curTime
- current time when this rule is applied.public java.lang.Object clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |