clarion.mcs
Class MonitorBuf

java.lang.Object
  extended byclarion.mcs.MonitorBuf

public class MonitorBuf
extends java.lang.Object


Field Summary
protected  double[][][] acsImprove
          improvement of ACS.
protected  int acsNetCompNum
          the number of components in each ACS network.
protected  int acsNetNum
          the number of ACS networks.
protected  double[][][] acsProgress
          progress of ACS.
protected  double[][][] acsRelStrengths
          relative strengths of the top conclusions from ACS.
protected  double[] buffer
          the content of the monitor buffer.
protected  int bufferLength
          the length of this monitor buffer.
protected  int c20
          the parameters in the performance and learning section.
protected  int c21
          the parameters in the performance and learning section.
protected  int c22
          the parameters in the performance and learning section.
protected  int c23
          the parameters in the performance and learning section.
protected  int c24
           
protected  int c25
           
protected  int c26
           
protected  int c27
           
protected  int c28
           
protected  int c29
           
protected  int c30
           
protected  int c31
           
protected  java.util.Vector[][] curAcsChunks
          the current top conclusions from ACS.
protected  java.util.Vector[] curNacsChunks
          the current top conclusions from NACS.
protected  Global global
          global CLARION settings.
protected  double[][] nacsImprove
          improvement of ACS.
protected  double[][] nacsProgress
          progress of NACS.
protected  double[][] nacsRelStrengths
          relative strengths of the top conclusions from NACS.
protected  java.util.Vector[][] preAcsChunks
          the previous top conclusions from ACS.
protected  java.util.Vector[] preNacsChunks
          the previous top conclusions from NACS.
 
Constructor Summary
MonitorBuf(Global global)
          constuctor.
 
Method Summary
 void calcAcsProgress()
          Calculates the progress of ACS.
 void calcAcsRelStrengths()
          Calculates the relative strengths of top conclusions from ACS.
 void calcNacsProgress()
          Calculates the progress of NACS.
 void calcNacsRelStrengths()
          Calculates the relative strengths of top conclusions from NACS.
 java.util.Vector getAcsChunks(int netIdx, int compIdx)
          Returns the top conclusions from ACS with specific network and the component in that network.
 double[] getAcsImprovement(int netIdx, int level)
          Returns the improvement of ACS with the specific network and level.
 double[] getAcsProgress(int netIdx, int compIdx)
          Returns the progress of ACS with the specific network and the component in that network.
 double[] getAcsRelStrengths(int netIdx, int compIdx)
          Returns the relative strengths of the top conclusions from ACS with the specific network and the component in that network.
 double[] getAcsStrengths(int netIdx, int compIdx)
          Deprecated. Replaced by getAcsRelStrengths( int netIdx, int compIdx ).
 double[] getBuffer()
          Returns the contents of this buffer.
 int getLength()
          Returns the length of this buffer.
 java.util.Vector getNacsChunks(int level)
          Returns the top conclusions from NACS with specific level.
 double[] getNacsImprovement(int level)
          Returns the improvement of NACS with the specific level.
 double[] getNacsProgress(int level)
          Returns the progress of NACS with the specific level.
 double[] getNacsRelStrengths(int level)
          Returns the relative strengths of the top conclusions from NACS with the specific level : TL or BL.
 double[] getNacsStrengths(int level)
          Deprecated. Replaced by getNacsRelStrengths( int level ).
 void setAcsEpiSuccRate(int netIdx, int level, double succRate)
          Sets the success rate of an episode in ACS with the specific network and level.
 void setCurAcsConclusions(int netIdx, int compIdx, Chunk[] chunks)
          Sets current top conclusions from ACS with specific network and component.
 void setCurNacsConclusions(int level, Chunk[] chunks)
          Sets current top conclusions from NACS with specific level.
 void setNacsEpiSuccRate(int level, double succRate)
          Sets the success rate of an episode in NACS with the specific level.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

global

protected Global global
global CLARION settings.


c20

protected int c20
the parameters in the performance and learning section. see tutorial on the details of these parameters.


c21

protected int c21
the parameters in the performance and learning section. see tutorial on the details of these parameters.


c22

protected int c22
the parameters in the performance and learning section. see tutorial on the details of these parameters.


c23

protected int c23
the parameters in the performance and learning section. see tutorial on the details of these parameters.


c24

protected int c24

c25

protected int c25

c26

protected int c26

c27

protected int c27

c28

protected int c28

c29

protected int c29

c30

protected int c30

c31

protected int c31

acsNetNum

protected int acsNetNum
the number of ACS networks.


acsNetCompNum

protected int acsNetCompNum
the number of components in each ACS network.


bufferLength

protected int bufferLength
the length of this monitor buffer.


buffer

protected double[] buffer
the content of the monitor buffer.


acsRelStrengths

protected double[][][] acsRelStrengths
relative strengths of the top conclusions from ACS.


nacsRelStrengths

protected double[][] nacsRelStrengths
relative strengths of the top conclusions from NACS.


acsProgress

protected double[][][] acsProgress
progress of ACS.


nacsProgress

protected double[][] nacsProgress
progress of NACS.


acsImprove

protected double[][][] acsImprove
improvement of ACS.


nacsImprove

protected double[][] nacsImprove
improvement of ACS.


preAcsChunks

protected java.util.Vector[][] preAcsChunks
the previous top conclusions from ACS.


preNacsChunks

protected java.util.Vector[] preNacsChunks
the previous top conclusions from NACS.


curAcsChunks

protected java.util.Vector[][] curAcsChunks
the current top conclusions from ACS.


curNacsChunks

protected java.util.Vector[] curNacsChunks
the current top conclusions from NACS.

Constructor Detail

MonitorBuf

public MonitorBuf(Global global)
constuctor.

Parameters:
global - the associated global settings.
Method Detail

getLength

public int getLength()
Returns the length of this buffer.


getAcsChunks

public java.util.Vector getAcsChunks(int netIdx,
                                     int compIdx)
Returns the top conclusions from ACS with specific network and the component in that network.

Parameters:
netIdx - the network index.
compIdx - the component index.
Returns:
the top conclusions.

getNacsChunks

public java.util.Vector getNacsChunks(int level)
Returns the top conclusions from NACS with specific level.

Parameters:
level - the specific level.
Returns:
the top conclusions.

getBuffer

public double[] getBuffer()
Returns the contents of this buffer.

Returns:
the contents of this buffer.

getAcsRelStrengths

public double[] getAcsRelStrengths(int netIdx,
                                   int compIdx)
Returns the relative strengths of the top conclusions from ACS with the specific network and the component in that network.

Parameters:
netIdx - network NO.
compIdx - component index: IDN, RER, IRL, FR.
Returns:
the relative strengths of the top conclusions.

getNacsRelStrengths

public double[] getNacsRelStrengths(int level)
Returns the relative strengths of the top conclusions from NACS with the specific level : TL or BL.

Parameters:
level - the specific level : TL or BL.
Returns:
the relative strengths of the top conclusions.

getAcsStrengths

public double[] getAcsStrengths(int netIdx,
                                int compIdx)
Deprecated. Replaced by getAcsRelStrengths( int netIdx, int compIdx ).

Returns the strengths of the top conclusions from ACS with the specific network and the component in that network.

Parameters:
netIdx - network NO.
compIdx - component index: IDN, RER, IRL, FR.
Returns:
the relative strengths of the top conclusions.

getNacsStrengths

public double[] getNacsStrengths(int level)
Deprecated. Replaced by getNacsRelStrengths( int level ).

Returns the strengths of the top conclusions from NACS with the specific level : TL or BL.

Parameters:
level - the specific level : TL or BL.
Returns:
the relative strengths of the top conclusions.

getAcsProgress

public double[] getAcsProgress(int netIdx,
                               int compIdx)
Returns the progress of ACS with the specific network and the component in that network.

Parameters:
netIdx - network NO.
compIdx - component index: IDN, RER, IRL, FR.
Returns:
the progress.

getNacsProgress

public double[] getNacsProgress(int level)
Returns the progress of NACS with the specific level.

Parameters:
level - the specific level: TL or BL.
Returns:
the progress.

getAcsImprovement

public double[] getAcsImprovement(int netIdx,
                                  int level)
Returns the improvement of ACS with the specific network and level.

Parameters:
netIdx - network NO.
level - level: top or bottom.
Returns:
the progress.

getNacsImprovement

public double[] getNacsImprovement(int level)
Returns the improvement of NACS with the specific level.

Parameters:
level - level: top or bottom.
Returns:
the improvement.

setCurAcsConclusions

public void setCurAcsConclusions(int netIdx,
                                 int compIdx,
                                 Chunk[] chunks)
Sets current top conclusions from ACS with specific network and component.

Parameters:
netIdx - the network NO.
compIdx - the component index.
chunks - the top conclusions from that component.

setCurNacsConclusions

public void setCurNacsConclusions(int level,
                                  Chunk[] chunks)
Sets current top conclusions from NACS with specific level.

Parameters:
level - the level: top or bottom.
chunks - the top conclusions from that component.

setAcsEpiSuccRate

public void setAcsEpiSuccRate(int netIdx,
                              int level,
                              double succRate)
Sets the success rate of an episode in ACS with the specific network and level.

Parameters:
netIdx - the network NO.
level - the specific level: top or bottom.
succRate - the success rate to set.

setNacsEpiSuccRate

public void setNacsEpiSuccRate(int level,
                               double succRate)
Sets the success rate of an episode in NACS with the specific level.

Parameters:
level - the specific level: top or bottom.
succRate - the success rate to set.

calcAcsRelStrengths

public void calcAcsRelStrengths()
Calculates the relative strengths of top conclusions from ACS.


calcNacsRelStrengths

public void calcNacsRelStrengths()
Calculates the relative strengths of top conclusions from NACS.


calcAcsProgress

public void calcAcsProgress()
Calculates the progress of ACS.


calcNacsProgress

public void calcNacsProgress()
Calculates the progress of NACS.