public class KahinaDAGBehavior extends KahinaBehavior<KahinaDAG>
A version of KahinaBehavior for defining the application-specific behavior of KahinaDAGs.
Implementations usually define the way a DAG is constructed and how it reacts to incoming KahinaEvents.
A typical use case is TulipaDAGBehavior for the search space visualization in the TuLiPA parsing system.
In an application, the user will usually want to inherit from this in order to define the behavior of DAG components.
By default, each KahinaBehavior implements the KahinaListener interface, but it does not register itself with the event system.
For that purpose, implementations should use the kahina.getControl().registerListener mechanism.
kahina, object| Constructor and Description |
|---|
KahinaDAGBehavior(KahinaDAG dag,
KahinaInstance kahina)
Class constructor specifying the controlled DAG and the KahinaInstance that it is connected to.
|
processEventpublic KahinaDAGBehavior(KahinaDAG dag, KahinaInstance kahina)
dag - the KahinaDAG the behavior of which is going to be controlled by the new instancekahina - the KahinaInstance that this behavior will belong to and communicate with