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

Edward A. Lee eal at eecs.berkeley.edu
Fri Nov 23 11:48:33 PST 2012


Seems like there should be a better way than bypassing the type
system...

The IterateOverArray actor does what you are describing on
its output ports.  And it does it with full support of the type
system.  Would this actor solve your problem?

Edward

On 11/22/12 2:32 PM, Panickos Neophytou wrote:
> 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 <mailto: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 <http://www.cs.pitt.edu/%7Epanickos>
>>
>>
>>     _______________________________________________
>>     Kepler-dev mailing list
>>     Kepler-dev at kepler-project.org  <mailto:Kepler-dev at kepler-project.org>
>>     http://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  <tel:510.643.9841>                                 (Office: 545Q Cory)
>     home: (F-Tu)707.665.0131  <tel:707.665.0131>  cell:707.332.0670  <tel:707.332.0670>
>
>
>
>
> _______________________________________________
> Kepler-dev mailing list
> Kepler-dev at kepler-project.org
> http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eal.vcf
Type: text/x-vcard
Size: 330 bytes
Desc: not available
URL: <http://lists.nceas.ucsb.edu/kepler/pipermail/kepler-dev/attachments/20121123/1afe7caf/attachment.vcf>


More information about the Kepler-dev mailing list