/* TestPR1.java Hamish Cunningham, 4/Sept/2000 $Id: TestPR1.java,v 1.6 2001/09/26 18:23:05 valyt Exp $ */ package testpkg; import java.util.*; import gate.*; import gate.util.*; import gate.creole.*; /** A simple ProcessingResource for testing purposes. */ public class TestPR1 extends AbstractProcessingResource implements ProcessingResource { /** Default Construction */ public TestPR1() { this(null); } // Default Construction /** Construction from name and features */ public TestPR1(FeatureMap features) { this.features = features; } // Construction from name and features /** Get the features associated with this corpus. */ public FeatureMap getFeatures() { return features; } /** Set the feature set */ public void setFeatures(FeatureMap features) { this.features = features; } /** The features associated with this resource. */ protected FeatureMap features; /** A prarmeter */ public void setThing(String t) { } /** Another prarmeter */ public void setThing2(String t) { } /** Run the thing. */ public void execute() throws ExecutionException{ features = Factory.newFeatureMap(); features.put("I", "have been run, thankyou"); } // run /** Initialisation */ public Resource init() { return this; } // init } // class TestPR1