Hi,
Thanks for the suggestion about putting a PN director inside the
composite, I was not sure if I was supposed to do that or not.

Under Ptolemy II 5.0-beta, when I have a PN inside PN, the
model runs fine.
Under Ptolemy II 4.0.1, when I have PN inside PN, the model
hangs.

I'll see if I can create a test case for this.

_Christopher


--------

    
    Thanks for the fast response.
    
    Did you try it after adding a PN director into the composite actor?
    There isn't one in the attachment, that's just my "case 1"...
    
    I'm running on Win XP with JDK 1.4.2_06.
    
    Regards
    
    Erwin
    
    
    Christopher Brooks wrote:
    
    >Hi,
    >
    >Hmm, for me, the model works under both Ptolemy II 4.0.1
    >and 5.0-beta.  When I say the model works, what I mean
    >is that when I type in text, the values equal to 10 times
    >the length of the text appear on the display.
    >
    >What platform are you running under?
    >
    >I'm running under Windows with Java 1.4.2_04
    >for Ptolemy II 4.0.1 and Java 1.4.2_08 for Ptolemy II 5.0-beta.
    >
    >Could you try Ptolemy II 5.0-beta?  The model
    >PN has some fixes from Xiaowen Xin, Ivan Jeukens and Edward Lee.
    >
    >In particular, Ivan did some experiments with embedding various
    >domains inside PN.  There are some tests in ptolemy/domains/test.
    >
    >_Christopher
    >
    >--------
    >    
    >    Hi,
    >    
    >    There have been some remarks in the past about mixing PN-typed composi
   te 
    >    actors in non-process domains, and that these don't seem to work.
    >    Replies then stated that currently process-type composites can only be
    
    >    used inside process-typed hierarchical models.
    >    
    >    But I've tried this (with Ptolemy 4.0.1), and seen the following behav
   iour:
    >    1- a PN parent model, containing composite actors without own director
    
    >    ("transparent" ?) executes and terminates fine
    >    2- a PN parent model, containing composite actors with an SDF director
    
    >    (and containing SDF-compatible actors) executes and terminates fine
    >    3- a PN parent model, containing composite actors with an PN director 
    >    does not function
    >    
    >    I've attached the sample moml file.
    >    The composite actor contains a simple Ramp, linked to an 
    >    InteractiveShell, and acts as source for a simple string-length 
    >    calculation and manipulation.
    >    In case (3-), the InteractiveShell gives me the expected prompt, but t
   he 
    >    cmd I enter seems not to arrive at the StringLength actor in the paren
   t 
    >    model...
    >    And the execution remains blocked after that...
    >    
    >    Can someone explain what are the semantic differences between cases 1 
   and 3
    >   ?
    >    Should case 3 function similarly to case 1, or doesn't this case make 
   sense
    >   ?
    >    What are the underlying components in the Ptolemy SW architecture that
    
    >    intervene in the communication between PN composites and hierarchies?
    >    
    >    Kind regards
    >    
    >    Erwin
    >    
    ><<attachment deleted>>
    >
    >  
    >
--------

----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

Reply via email to