|
MaltParser 1.4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.maltparser.core.flow.item.ChartItem
public abstract class ChartItem
Field Summary | |
---|---|
protected ChartItemSpecification |
chartItemSpecification
|
static int |
CONTINUE
|
protected FlowChartInstance |
flowChartinstance
|
static int |
NEWITERATION
|
static int |
TERMINATE
|
Constructor Summary | |
---|---|
ChartItem()
|
Method Summary | |
---|---|
ChartElement |
getChartElement(String key)
Returns the chart element in the flow chart system description |
ChartItemSpecification |
getChartItemSpecification()
Returns a chart item specification |
FlowChartInstance |
getFlowChartInstance()
Returns the flow chart instance that the chart item belongs to |
int |
getOptionContainerIndex()
Returns the option container index |
void |
initialize(FlowChartInstance flowChartinstance,
ChartItemSpecification chartItemSpecification)
Initialize the chart item |
abstract int |
postprocess(int signal)
Cause the chart item to perform the postprocess tasks |
abstract int |
preprocess(int signal)
Cause the chart item to perform the preprocess tasks |
abstract int |
process(int signal)
Cause the chart item to perform the process task (for every sentence) |
void |
setChartItemSpecification(ChartItemSpecification chartItemSpecification)
Sets the specification of the chart item |
protected void |
setFlowChartInstance(FlowChartInstance flowChartinstance)
Sets the flow chart instance that the chart item belongs to |
abstract void |
terminate()
Terminates and cleans up the chart item |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected FlowChartInstance flowChartinstance
protected ChartItemSpecification chartItemSpecification
public static final int CONTINUE
public static final int TERMINATE
public static final int NEWITERATION
Constructor Detail |
---|
public ChartItem()
Method Detail |
---|
public void initialize(FlowChartInstance flowChartinstance, ChartItemSpecification chartItemSpecification) throws MaltChainedException
flowChartinstance
- the flow chart instance that the chart item belongs tochartItemSpecification
- a specification of the chart item
MaltChainedException
public abstract int preprocess(int signal) throws MaltChainedException
signal
- returned by the previous chart item
MaltChainedException
public abstract int process(int signal) throws MaltChainedException
signal
- returned by the previous chart item
MaltChainedException
public abstract int postprocess(int signal) throws MaltChainedException
signal
- returned by the previous chart item
MaltChainedException
public abstract void terminate() throws MaltChainedException
MaltChainedException
public FlowChartInstance getFlowChartInstance()
protected void setFlowChartInstance(FlowChartInstance flowChartinstance)
flowChartinstance
- a flow chart instancepublic int getOptionContainerIndex()
public ChartElement getChartElement(String key)
key
- a chart element key
public ChartItemSpecification getChartItemSpecification()
public void setChartItemSpecification(ChartItemSpecification chartItemSpecification)
chartItemSpecification
- a chart item specification
|
MaltParser 1.4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |