|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclarion.nacs.GKS
Constructor Summary | |
GKS(Global g)
|
Method Summary | |
void |
bottomUp(int amnIdx,
Feature[] amnResult)
the process of bottom-up activation. |
void |
calcChosenChunkBLA()
compute the BLA of the chosen chunk. |
void |
checkEM()
check EM if activations of some chunks are lower than the threshold. |
void |
fillInEmForAssimilation()
Fills in the EM with the chunks and associative rules in GKS for assimilating the explicit knowledge. |
boolean |
formResults(int retrievalMode,
int retrievalChunkType)
combine the result from both GKS and AMN. |
Chunk[] |
getAllMonitorConclusions()
Returns the all results for monitor buffer. |
Chunk[] |
getBottomLevelMonitorConclusions()
Returns the bottom level results for monitor buffer. |
GKSChunk |
getChunk(int idx)
Returns a specific chunk in GKS. |
int |
getChunkIdx(Feature[] features)
Returns an index on a chunk with the specific features in GKS. |
int |
getChunkIdx(java.lang.String label)
Returns an index on a chunk with the specific label in GKS. |
GKSChunk[] |
getCombinedResults()
Returns the conbined retrieval results. |
short[][] |
getConditions(int conclusion)
|
EMAcsSample[] |
getEmAcsSamples(int netIdx,
int trainType)
Returns the ACS samples in EM. |
EMNacsSample[] |
getEmNacsSamples(int netIdx)
Returns the NACS samples in EM. |
int |
getRT()
Returns the response time. |
Chunk[] |
getTopLevelMonitorConclusions()
Returns the top level results for monitor buffer. |
int |
insertChunk(GKSChunk chunk)
insert a specific chunk into GKS. |
int |
insertChunk(int idnIdx,
int amnIdx,
int type,
java.lang.String label,
Feature[] features)
insert a specific chunk into GKS. |
void |
insertRule(short[] condition,
short conclusion)
insert an associative with the condition and conclusion. |
boolean |
reasoning()
the reasoning process of GKS decrbied in CLARION model. |
void |
reinit()
reinitialization routine. |
void |
removeChunk(int chunkIdx)
remove a chunk with the specific index. |
void |
resetRT()
reset the response time. |
void |
resetStrengths()
|
java.util.Vector |
searchConclusions(short[] conditions)
search all of the conclusions with the specific condition in terms of indices of the chunks. |
boolean |
searchConditions(short[] conditions,
short conclusion)
|
void |
setChunkStrength(int idx,
double strength)
Sets strength for the specificed chunk. |
void |
setCurrentTime(long time)
Sets the response time. |
void |
setGksIterNum(int num)
Sets the # of iterations of GKS reasoning. |
void |
setGksReasoningMethod(int method)
Sets the GKS reasoning methods. |
void |
setRetrievalCue(Feature[] content)
Sets the cue for retrieval. |
void |
setRetrievalCue(Feature[] content,
int concIdx)
Deprecated. Replaced by setRetrievalCue( Feature[] content ). |
java.lang.String |
toString()
methods from class Object |
void |
update()
update GKS. |
void |
updateEM(int subsys,
int idx)
add chunk with the specific type and index into EM. |
void |
updateEM(int subsys,
int netIdx,
Feature[] condition,
Feature[] conclusion)
add associative rules with the specific condition and conclusion in terms of features into EM. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public GKS(Global g)
Method Detail |
public void reinit()
public void resetStrengths()
public void resetRT()
public GKSChunk[] getCombinedResults()
public Chunk[] getTopLevelMonitorConclusions()
public Chunk[] getBottomLevelMonitorConclusions()
public Chunk[] getAllMonitorConclusions()
public EMAcsSample[] getEmAcsSamples(int netIdx, int trainType)
netIdx
- index on an ACS network.trainType
- the training type: for ACS or for AEM.
public EMNacsSample[] getEmNacsSamples(int netIdx)
netIdx
- index on network.
public GKSChunk getChunk(int idx)
idx
- the index on a specific chunk in GKS.
public int getChunkIdx(java.lang.String label)
label
- the chunk label.
public int getChunkIdx(Feature[] features)
features
- the chunk features.
public short[][] getConditions(int conclusion)
public int getRT()
public void setRetrievalCue(Feature[] content)
content
- the cue features.public void setRetrievalCue(Feature[] content, int concIdx)
content
- the cue features.concIdx
- the index on conclusion dimension in the cue.public void setCurrentTime(long time)
time
- the value to set.public void setChunkStrength(int idx, double strength)
idx
- the chunk index.strength
- the strength to set.public void setGksIterNum(int num)
num
- the number to set.public void setGksReasoningMethod(int method)
method
- the method to set.public int insertChunk(GKSChunk chunk)
chunk
- the chunk to insert.public int insertChunk(int idnIdx, int amnIdx, int type, java.lang.String label, Feature[] features)
idnIdx
- the index on an IDN.amnIdx
- the index on an AMN.type
- chunk type.label
- chunk label.features
- the chunk features.public void removeChunk(int chunkIdx)
chunkIdx
- the index on the chunk.public void insertRule(short[] condition, short conclusion)
condition
- the condition of the rule in terms of the indices of chunks.conclusion
- the conclusion of the rule in terms of the index of the chunk.public boolean reasoning()
public void bottomUp(int amnIdx, Feature[] amnResult)
amnIdx
- the index on an AMN.amnResult
- the retrieval result from the AMN.public boolean formResults(int retrievalMode, int retrievalChunkType)
retrievalMode
- the retrieval mode: retrieval all chunks or only one chunk.public boolean searchConditions(short[] conditions, short conclusion)
public java.util.Vector searchConclusions(short[] conditions)
public void update()
public void updateEM(int subsys, int idx)
subsys
- the chunk comes from.idx
- the index on the chunk.public void updateEM(int subsys, int netIdx, Feature[] condition, Feature[] conclusion)
subsys
- ACS or NACS.netIdx
- index to an network.condition
- the condition features.conclusion
- the conclusion features.public java.lang.String toString()
public void calcChosenChunkBLA()
public void fillInEmForAssimilation()
public void checkEM()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |