|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsg.edu.nus.comp.nlp.ims.lexelt.ALexelt
public abstract class ALexelt
abstract lexelt.
Field Summary | |
---|---|
protected java.util.ArrayList<java.lang.String> |
m_IDs
|
protected java.util.ArrayList<IInstance> |
m_Instances
|
protected java.lang.String |
m_LexeltID
|
protected IStatistic |
m_Statistic
|
Constructor Summary | |
---|---|
ALexelt(java.lang.String p_LexeltID)
constructor with lexelt id |
Method Summary | |
---|---|
boolean |
addInstance(IInstance p_Instance)
the same as addInstance(p_iInstance, false) |
java.lang.String |
getID()
get the ID of this lexelt |
IInstance |
getInstance(int p_Index)
get instance with index p_Index |
java.lang.String |
getInstanceDocID(int p_Index)
get the document id of instance p_Index |
java.lang.String |
getInstanceID(int p_Index)
get the instance id of instance p_Index |
java.util.ArrayList<java.lang.String> |
getInstanceIDs()
get the instance id list of all the instances in Lexelt |
IStatistic |
getStatistic()
get the statistic information of this lexelt |
java.util.ArrayList<java.lang.String> |
getTag(int p_Index)
get the tags of instance |
java.util.ArrayList<java.lang.String> |
getTag(java.lang.String p_InstanceID)
get the tag of p_InstanceID |
java.lang.String |
getValue(int p_Index,
int p_KeyIndex)
get the p_Key's value of instance p_Index |
java.lang.String |
getValue(int p_Index,
java.lang.String p_Key)
get the p_Key's value of instance p_Index |
java.lang.String |
getValue(java.lang.String p_InstanceID,
java.lang.String p_Key)
get the p_Key's value of instance p_InstanceID |
IInstance |
removeInstance(java.lang.String p_InstanceID)
remove the instance of index p_Index. |
boolean |
setStatistic(IStatistic p_Statistic)
set the statistic information to the lexelt |
int |
size()
get the number of instances in lexelt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface sg.edu.nus.comp.nlp.ims.lexelt.ILexelt |
---|
addInstance, removeInstance |
Field Detail |
---|
protected IStatistic m_Statistic
protected java.util.ArrayList<java.lang.String> m_IDs
protected java.util.ArrayList<IInstance> m_Instances
protected java.lang.String m_LexeltID
Constructor Detail |
---|
public ALexelt(java.lang.String p_LexeltID)
p_LexeltID
- lexelt idMethod Detail |
---|
public java.lang.String getID()
ILexelt
getID
in interface ILexelt
public java.util.ArrayList<java.lang.String> getInstanceIDs()
ILexelt
getInstanceIDs
in interface ILexelt
public IStatistic getStatistic()
ILexelt
getStatistic
in interface ILexelt
public java.lang.String getInstanceID(int p_Index)
ILexelt
getInstanceID
in interface ILexelt
p_Index
- instance id
public java.lang.String getInstanceDocID(int p_Index)
ILexelt
getInstanceDocID
in interface ILexelt
p_Index
- instance id
public int size()
ILexelt
size
in interface ILexelt
public java.util.ArrayList<java.lang.String> getTag(java.lang.String p_InstanceID)
ILexelt
getTag
in interface ILexelt
p_InstanceID
- instance id
public java.util.ArrayList<java.lang.String> getTag(int p_Index)
ILexelt
getTag
in interface ILexelt
p_Index
- instance index
public java.lang.String getValue(java.lang.String p_InstanceID, java.lang.String p_Key)
ILexelt
getValue
in interface ILexelt
p_InstanceID
- instance idp_Key
- feature name
public java.lang.String getValue(int p_Index, java.lang.String p_Key)
ILexelt
getValue
in interface ILexelt
p_Index
- instance indexp_Key
- feature name
public java.lang.String getValue(int p_Index, int p_KeyIndex)
ILexelt
getValue
in interface ILexelt
p_Index
- instance indexp_KeyIndex
- feature index
public IInstance getInstance(int p_Index)
ILexelt
getInstance
in interface ILexelt
p_Index
- instance index
public boolean addInstance(IInstance p_Instance)
ILexelt
addInstance
in interface ILexelt
p_Instance
- instance
public boolean setStatistic(IStatistic p_Statistic)
ILexelt
setStatistic
in interface ILexelt
p_Statistic
- statistic information
public IInstance removeInstance(java.lang.String p_InstanceID)
ILexelt
removeInstance
in interface ILexelt
p_InstanceID
- instance id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |