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
<[email protected] <mailto:[email protected]>> 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
    [email protected]  <mailto:[email protected]>
    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
[email protected]
http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev

<<attachment: eal.vcf>>

_______________________________________________
Kepler-dev mailing list
[email protected]
http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev

Reply via email to