01 /*
02 * ControllerEventBlocksAction.java
03 *
04 * Copyright (c) 1995-2010, The University of Sheffield. See the file
05 * COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
06 *
07 * This file is part of GATE (see http://gate.ac.uk/), and is free
08 * software, licenced under the GNU Library General Public License,
09 * Version 2, June 1991 (in the distribution as file licence.html,
10 * and also available at http://gate.ac.uk/gate/licence.html).
11 *
12 * $Id: $
13 *
14 */
15
16 package gate.jape;
17
18 import gate.Controller;
19 import gate.Corpus;
20 import gate.creole.ontology.Ontology;
21 import java.io.Serializable;
22
23 /**
24 * The interface used by the action class generated for controller event blocks.
25 *
26 * @author Johann Petrak
27 */
28 public interface ControllerEventBlocksAction extends Serializable {
29 public void controllerExecutionStarted();
30 public void controllerExecutionFinished();
31 public void controllerExecutionAborted();
32 public void setController(Controller c);
33 public Controller getController();
34 public void setThrowable(Throwable t);
35 public Throwable getThrowable();
36 public void setCorpus(Corpus c);
37 public Corpus getCorpus();
38 public void setActionContext(ActionContext ac);
39 public ActionContext getActionContext();
40 public void setOntology(Ontology o);
41 public Ontology getOntology();
42 }
|