[kepler-users] My own actor

Chad Berkley berkley at nceas.ucsb.edu
Fri Nov 14 10:03:22 PST 2008


Hi Guillaume,

What director are you using?  You might need to do a check to see if 
there is any data on the port before actually reading from it.  This 
depends on the director you are using.  I believe you need to do this 
for PN and maybe others.

chad


tog wrote:
> Hi
> 
> I have designed my own actor which encapsulate some grid execution
> service. It's behavior is similar to the webservice actor (ports are
> created once a provider is chosen).
> I used to chain several instances of my actor without any problem.
> 
> I now have a problem when I decided to use a
> DataInput/WorkflowInput/Parameter/PortParameter to feed my actor
> (previously one of my actor was creating some data which was
> propagated)
> 
> The PortParameter is set using a FileParameter.
> 
> When I run my workflow, it fires my first actor which try to get a
> token on its input (as usual) but it seems that there is no token
> since I get the following message:
>                   ptolemy.actor.NoTokenException: Attempt to get token
> from an empty QueueReceiver
> 
> What is the correct way to read from a PortParamter ?
> 
> Thanks
> Guillaume
> _______________________________________________
> Kepler-users mailing list
> Kepler-users at ecoinformatics.org
> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users


More information about the Kepler-users mailing list