sg.edu.nus.comp.nlp.ims.lexelt
Class CLexelt

java.lang.Object
  extended by sg.edu.nus.comp.nlp.ims.lexelt.ALexelt
      extended by sg.edu.nus.comp.nlp.ims.lexelt.CLexelt
All Implemented Interfaces:
java.io.Serializable, ILexelt

public class CLexelt
extends ALexelt

a common lexelt.

Author:
zhongzhi
See Also:
Serialized Form

Field Summary
 
Fields inherited from class sg.edu.nus.comp.nlp.ims.lexelt.ALexelt
m_IDs, m_Instances, m_LexeltID, m_Statistic
 
Constructor Summary
CLexelt(java.lang.String p_LexeltID)
          constructor with lexelt id
 
Method Summary
 boolean addInstance(IInstance p_iInstance, boolean p_AddToStat)
          add one instance into Lexelt.
 IInstance removeInstance(int p_Index)
          remove instance from lexelt no action will be done to the statistic of this lexelt
 
Methods inherited from class sg.edu.nus.comp.nlp.ims.lexelt.ALexelt
addInstance, getID, getInstance, getInstanceDocID, getInstanceID, getInstanceIDs, getStatistic, getTag, getTag, getValue, getValue, getValue, removeInstance, setStatistic, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CLexelt

public CLexelt(java.lang.String p_LexeltID)
constructor with lexelt id

Parameters:
p_LexeltID - lexelt id
Method Detail

addInstance

public boolean addInstance(IInstance p_iInstance,
                           boolean p_AddToStat)
Description copied from interface: ILexelt
add one instance into Lexelt. if p_AddToStat is true, the instance information will also be added to the statistic information

Parameters:
p_iInstance - instance
p_AddToStat - add to statistic or not
Returns:
success or not

removeInstance

public IInstance removeInstance(int p_Index)
remove instance from lexelt no action will be done to the statistic of this lexelt

Parameters:
p_Index - index
Returns:
removed instance