debugger.resources
Class PhaseController

java.lang.Object
  extended bydebugger.resources.PhaseController
All Implemented Interfaces:
AnnotationSetListener, EventListener

public class PhaseController
extends Object
implements AnnotationSetListener

Copyright (c) Ontos AG (http://www.ontosearch.com). This class is part of JAPE Debugger component for GATE (Copyright (c) "The University of Sheffield" see http://gate.ac.uk/)

Author:
Andrey Shafirin

Field Summary
private  RightHandSide currentRHS
           
private  SinglePhaseTransducer currentSPT
           
private static int DebugLevel
           
private  boolean isStopAfterRHSExec
           
private static PhaseController ourInstance
           
private  AnnotationSet ruleAnnotations
           
private  SPTLock sptLock
           
private  TraceContainer traceContainer
           
 
Constructor Summary
PhaseController()
           
 
Method Summary
 void annotationAdded(AnnotationSetEvent e)
          Called when a new Annotation has been added
 void annotationRemoved(AnnotationSetEvent e)
          Called when an Annotation has been removed
 void continueSPT()
           
 TraceContainer getRuleTrace()
           
 SinglePhaseTransducer getSPT()
           
 boolean isStopAfterRHSExec()
           
 void RuleFinished(SPTLock sptLock, SinglePhaseTransducer spt, RightHandSide rhs, Document document, HashMap bindings, AnnotationSet inputAS, AnnotationSet outputAS)
           
 void RuleMatched(SPTLock sptLock, SinglePhaseTransducer spt, RightHandSide rhs, Document document, HashMap bindings, AnnotationSet inputAS, AnnotationSet outputAS)
           
 void runControllerButtonActionPerformed(ActionEvent ae)
           
 void setStopAfterRHSExec(boolean stopAfterRHSExec)
           
 void TraceTransit(TraceContainer traceContainer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ourInstance

private static PhaseController ourInstance

DebugLevel

private static int DebugLevel

sptLock

private SPTLock sptLock

isStopAfterRHSExec

private boolean isStopAfterRHSExec

ruleAnnotations

private AnnotationSet ruleAnnotations

traceContainer

private TraceContainer traceContainer

currentSPT

private SinglePhaseTransducer currentSPT

currentRHS

private RightHandSide currentRHS
Constructor Detail

PhaseController

public PhaseController()
Method Detail

isStopAfterRHSExec

public boolean isStopAfterRHSExec()

setStopAfterRHSExec

public void setStopAfterRHSExec(boolean stopAfterRHSExec)

continueSPT

public void continueSPT()

RuleMatched

public void RuleMatched(SPTLock sptLock,
                        SinglePhaseTransducer spt,
                        RightHandSide rhs,
                        Document document,
                        HashMap bindings,
                        AnnotationSet inputAS,
                        AnnotationSet outputAS)

RuleFinished

public void RuleFinished(SPTLock sptLock,
                         SinglePhaseTransducer spt,
                         RightHandSide rhs,
                         Document document,
                         HashMap bindings,
                         AnnotationSet inputAS,
                         AnnotationSet outputAS)

annotationAdded

public void annotationAdded(AnnotationSetEvent e)
Called when a new Annotation has been added

Specified by:
annotationAdded in interface AnnotationSetListener

annotationRemoved

public void annotationRemoved(AnnotationSetEvent e)
Called when an Annotation has been removed

Specified by:
annotationRemoved in interface AnnotationSetListener

runControllerButtonActionPerformed

public void runControllerButtonActionPerformed(ActionEvent ae)

TraceTransit

public void TraceTransit(TraceContainer traceContainer)

getRuleTrace

public TraceContainer getRuleTrace()

getSPT

public SinglePhaseTransducer getSPT()