clarion.acs.gs
Class GoalChunk

java.lang.Object
  extended byclarion.common.Chunk
      extended byclarion.acs.gs.GoalChunk
All Implemented Interfaces:
java.lang.Cloneable

public class GoalChunk
extends Chunk


Field Summary
protected  boolean activated
          indicate activated or not.
protected  boolean removed
          indicates removed or not.
 
Fields inherited from class clarion.common.Chunk
BLA, c, chunkBlaOption, chunkLabel, chunkType, d, featList, global, iBLA, MAX_USAGE_NUM, strength, usageNum, usageRecords
 
Constructor Summary
GoalChunk(int type, java.lang.String label, Feature[] list, Global g)
          constructor.
 
Method Summary
 boolean isActivated()
          Returns if this item is activated or not.
 boolean isRemoved()
          Returns if this item is removed or not.
 void setActivated(boolean flag)
          Sets flag of activation.
 void setRemoved(boolean flag)
          Sets flag of removal.
 
Methods inherited from class clarion.common.Chunk
append, calcBLA, clone, equals, getBLA, getBlaOption, getChunkType, getContent, getContent, getDimNum, getFeature, getFeatureNum, getFeatures, getFeatures, getLabel, getLength, getStrength, getUsageNum, getUsageRecords, getUsageRecords, hashCode, increaseUsage, isEqual, reinit, resetUsage, searchFeature, setBLA_C, setBLA_D, setBLA_INIT, setBla, setBlaOption, setBlaParams, setLabel, setStrength, setUsageNum, setUsageRecords, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

activated

protected boolean activated
indicate activated or not.


removed

protected boolean removed
indicates removed or not.

Constructor Detail

GoalChunk

public GoalChunk(int type,
                 java.lang.String label,
                 Feature[] list,
                 Global g)
constructor.

Parameters:
type - chunk type.
label - the item label.
list - the feature list of the item.
g - the associated global settings.
Method Detail

isActivated

public boolean isActivated()
Returns if this item is activated or not.


isRemoved

public boolean isRemoved()
Returns if this item is removed or not.


setActivated

public void setActivated(boolean flag)
Sets flag of activation.

Parameters:
flag - the flag indicates this item is activated or not.

setRemoved

public void setRemoved(boolean flag)
Sets flag of removal.

Parameters:
flag - the flag indicates this item is removed or not.