[kepler-dev] triggering an actor when not every input has a token

Tristan King tristan.king at jcu.edu.au
Thu Feb 16 21:19:44 PST 2006


I would like to be able to fire one of my actors, which has an input
connected to the BinaryFileReader's output port, even if the file which
the BinaryFileReader reads is a zero byte file (i.e. no token is sent
out the output port). I thought i could just make my actor extend the
Source class and connect the trigger port to the BinaryFileReader's
endOfFile port, but this doesn't seem to work.

Is there a way i can trigger an actor to fire even though there are no
tokens on a connected port? (I'm sure I had this working at some time,
but I didn't have my SVN repositry then so I can't roll back my code to
check). I've included the code for my QualityAssurance actor (which i'm
using in the aformentioned situation) so you can tell me if i'm doing
something wrong :)

Thanks
--Tristan

-- 
Tristan King                            | Ph: (07) 4781 6911
DART project team                       | Email: Tristan.King at jcu.edu.au
James Cook University                   | Web: http://dart.edu.au
Townsville QLD 4814                     | http://plone.jcu.edu.au/dart/
Australia                               |

-------------- next part --------------
A non-text attachment was scrubbed...
Name: QualityAssurance.java
Type: text/x-java
Size: 3462 bytes
Desc: not available
Url : http://mercury.nceas.ucsb.edu/ecoinformatics/pipermail/kepler-dev/attachments/20060217/a8fbe66f/QualityAssurance.bin


More information about the Kepler-dev mailing list