Exemplo n.º 1
0
 @Override
 public void controllerExecutionAborted(Controller c, Throwable t) throws ExecutionException {
   batch.runControllerExecutionAbortedBlock(actionContext, c, t, ontology);
   actionContext.setCorpus(null);
   actionContext.setController(null);
   actionContext.setPR(null);
 }
Exemplo n.º 2
0
 @Override
 public void controllerExecutionFinished(Controller c) throws ExecutionException {
   batch.runControllerExecutionFinishedBlock(actionContext, c, ontology);
   actionContext.setCorpus(null);
   actionContext.setController(null);
   actionContext.setPR(null);
 }
Exemplo n.º 3
0
 /**
  * Sets the ontology used by this transducer.
  *
  * @param ontology an {@link gate.creole.ontology.Ontology} value.
  */
 @RunTime
 @Optional
 @CreoleParameter(comment = "The ontology to be used by this transducer")
 public void setOntology(gate.creole.ontology.Ontology ontology) {
   this.ontology = ontology;
   // ontology is now a run-time param so we need to propagate it down to the
   // actual SPTs included in this transducer.
   if (batch != null) batch.setOntology(ontology);
 }
Exemplo n.º 4
0
 // methods implemeting ControllerAwarePR
 @Override
 public void controllerExecutionStarted(Controller c) throws ExecutionException {
   actionContext.setController(c);
   actionContext.setCorpus(corpus);
   actionContext.setPRFeatures(features);
   actionContext.setPRName(this.getName());
   actionContext.setPR(this);
   actionContext.setDebuggingEnabled(enableDebugging);
   batch.runControllerExecutionStartedBlock(actionContext, c, ontology);
 }