jsparky
クラス OperationManager

java.lang.Object
  拡張jsparky.OperationManager
直系の既知のサブクラス:
OperationManagerEx

public class OperationManager
extends java.lang.Object


フィールドの概要
protected  boolean debug
           
protected  AggregatedElement prev
           
protected  ReferringExpression ref
           
 
コンストラクタの概要
OperationManager()
           
 
メソッドの概要
protected  AggregationResult aggregate(Operation operation, RSTElement rst_elem, Aggregatable a1, Aggregatable a2)
          Utility Functions below
 SentencePlan aggregate(RSTPlan rst_plan)
          main loop
protected  void aggregate(SentencePlan splan, RSTElement elem)
          perform main aggregation
protected  java.util.List getAggregatableChildren(RSTElement parent)
          get SentencePlanElement or PropositionElement
protected  java.util.List getAllOperations()
          get all registered operations
protected  Operation getRandomOperation()
          get random group and random operation
 java.lang.String getText(AggregatedElement elem)
          get all the text under AggregatedElement
 void getText(AggregatedElement elem, java.io.StringWriter sw)
           
 RSTElement nextTarget(org.w3c.dom.Document doc)
           
 void postProcess(SentencePlan splan)
          this can be overriden to do other things
 void register(OperationGroup group, int prob)
           
protected  java.lang.Object[] selectTwo(java.util.List lis)
          select two sequential objects
 void setDebug(boolean b)
           
 void setRealizer(Realizer realizer)
           
 void setTopPlan(boolean b)
          set top plan flag to all operations
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

ref

protected ReferringExpression ref

debug

protected boolean debug

prev

protected AggregatedElement prev
コンストラクタの詳細

OperationManager

public OperationManager()
メソッドの詳細

setRealizer

public void setRealizer(Realizer realizer)

register

public void register(OperationGroup group,
                     int prob)

getRandomOperation

protected Operation getRandomOperation()
get random group and random operation


getAllOperations

protected java.util.List getAllOperations()
get all registered operations


setTopPlan

public void setTopPlan(boolean b)
set top plan flag to all operations


aggregate

public SentencePlan aggregate(RSTPlan rst_plan)
main loop


postProcess

public void postProcess(SentencePlan splan)
this can be overriden to do other things


nextTarget

public RSTElement nextTarget(org.w3c.dom.Document doc)

getAggregatableChildren

protected java.util.List getAggregatableChildren(RSTElement parent)
get SentencePlanElement or PropositionElement


aggregate

protected void aggregate(SentencePlan splan,
                         RSTElement elem)
perform main aggregation


aggregate

protected AggregationResult aggregate(Operation operation,
                                      RSTElement rst_elem,
                                      Aggregatable a1,
                                      Aggregatable a2)
                               throws AggregationException
Utility Functions below

例外:
AggregationException

selectTwo

protected java.lang.Object[] selectTwo(java.util.List lis)
select two sequential objects


setDebug

public void setDebug(boolean b)

getText

public java.lang.String getText(AggregatedElement elem)
get all the text under AggregatedElement


getText

public void getText(AggregatedElement elem,
                    java.io.StringWriter sw)