Revision: 13702
http://gate.svn.sourceforge.net/gate/?rev=13702&view=rev
Author: ian_roberts
Date: 2011-04-19 12:09:54 +0000 (Tue, 19 Apr 2011)
Log Message:
-----------
Marked the document parameter as optional in corpus pipelines when used as PRs.
This allows a corpus pipeline to be nested in a simple pipeline in such a way
as to iterate over its corpus before execution moves on to the next PR in the
containing simple pipeline.
Modified Paths:
--------------
gate/trunk/src/gate/creole/ConditionalSerialAnalyserController.java
gate/trunk/src/gate/creole/SerialAnalyserController.java
Modified: gate/trunk/src/gate/creole/ConditionalSerialAnalyserController.java
===================================================================
--- gate/trunk/src/gate/creole/ConditionalSerialAnalyserController.java
2011-04-19 11:53:15 UTC (rev 13701)
+++ gate/trunk/src/gate/creole/ConditionalSerialAnalyserController.java
2011-04-19 12:09:54 UTC (rev 13702)
@@ -18,7 +18,7 @@
import java.util.*;
import gate.*;
-import gate.creole.metadata.CreoleResource;
+import gate.creole.metadata.*;
import gate.event.CreoleEvent;
import gate.util.*;
@@ -54,6 +54,9 @@
/**
* @param document the document to set
*/
+ @Optional
+ @RunTime
+ @CreoleParameter
public void setDocument(Document document) {
this.document = document;
}
Modified: gate/trunk/src/gate/creole/SerialAnalyserController.java
===================================================================
--- gate/trunk/src/gate/creole/SerialAnalyserController.java 2011-04-19
11:53:15 UTC (rev 13701)
+++ gate/trunk/src/gate/creole/SerialAnalyserController.java 2011-04-19
12:09:54 UTC (rev 13702)
@@ -18,7 +18,7 @@
import java.util.*;
import gate.*;
-import gate.creole.metadata.CreoleResource;
+import gate.creole.metadata.*;
import gate.event.CreoleEvent;
import gate.util.*;
@@ -47,6 +47,9 @@
/**
* @param document the document to set
*/
+ @Optional
+ @RunTime
+ @CreoleParameter
public void setDocument(Document document) {
this.document = document;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs