[kepler-dev] Override a ptolemyII class within my module

Panickos Neophytou panickos at gmail.com
Thu Nov 22 14:32:49 PST 2012


Hi Christopher,

I basically wrote a new receiver that batches together sets of single
tokens into arrayTokens and passes them to the actor as an array. This of
course only works for Actors capable of working with ArrayTokens. Anyway
that's no the real point.

The reason I want to change the TypedIOPort is to avoid the type checking
when a transferInside() call is made on input ports of composite actors. I
get an exception every time a token is transfered.

One hack I tried was to switch the type of the actor whenever it had a new
token to pass and then turn it back for when a put() happen to be on the
correct single token type. This works when the director is a single
threaded one, but on my variation of the PN director it was causing
immediate deadlocks.

Cheers,
Panickos

-------------------------------------
Panickos Neophytou
Advanced Data Management Technologies Lab
Department of Computer Science, University of Pittsburgh
http://www.cs.pitt.edu/~panickos


On Thu, Nov 22, 2012 at 2:31 PM, Christopher Brooks
<cxh at eecs.berkeley.edu>wrote:

>  Hi Panickos,
> What's the exception in TypedIOPort?  It is probably there for a reason.
>
> If you would like to modify TypedIOPort, I suggest working from the devel
> tree.
>
> _Christopher
>
>
> On 11/22/12 3:49 AM, Panickos Neophytou wrote:
>
> Hi all,
>
>  I'm trying to override the TypedIOPort to avoid an exception in my
> module.
>
>  I've read the instructions G4 in this:
> https://kepler-project.org/developers/teams/build/systems/extension-build-system/extension-build-system-problems-solutions
>
>  I have copied the file to my module src directory and made the necessary
> changes but the when trying to run kepler either through eclipse or the
> command line kepler.sh file it seems like the original file is always being
> used.
>
>  Do I need to setup some configuration file? The modules.txt is
> configured correctly with my module's name on top of the kepler suite.
>
>  I'm using kepler 2.3.
>
>  Thanks,
> Panickos
>
> -------------------------------------
> Panickos Neophytou
> Advanced Data Management Technologies Lab
> Department of Computer Science, University of Pittsburgh
> http://www.cs.pitt.edu/~panickos
>
>
> _______________________________________________
> Kepler-dev mailing listKepler-dev at kepler-project.orghttp://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev
>
>
> --
> Christopher Brooks, PMP                       University of California
> CHESS Executive Director                      US Mail: 337 Cory Hall
> Programmer/Analyst CHESS/Ptolemy/Trust        Berkeley, CA 94720-1774
> ph: 510.643.9841                                (Office: 545Q Cory)
> home: (F-Tu) 707.665.0131 cell: 707.332.0670
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nceas.ucsb.edu/kepler/pipermail/kepler-dev/attachments/20121122/b67a63fd/attachment.html>


More information about the Kepler-dev mailing list