I spoke to soon!

It seems like under Ptolemy II 5.0-beta, the PN inside PN model runs
fine the first time, and then ends after 3 iterations because
the Ramp in the composite actor has a firing limit of 3.

If I run it again, I get no output
If I click the stop button, I see "Wrapping Up" in the status
line.  If I click the stop button again, I get the following exception: 

ptolemy.kernel.util.IllegalActionException: Interrupted.
  in .test-composite-3.CompositeActor.PN Director
  at 
ptolemy.actor.process.CompositeProcessDirector._resolveDeadlock(CompositeProcessDirector.java:722)
  at ptolemy.actor.process.ProcessDirector.fire(ProcessDirector.java:182)
  at ptolemy.actor.CompositeActor.fire(CompositeActor.java:329)
  at ptolemy.actor.process.ProcessThread.run(ProcessThread.java:182)

Perhaps someone else has some insight?

_Christopher

--------

    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 composit
   e 
        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 behavi
   our:
        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 th
   e 
        cmd I enter seems not to arrive at the StringLength actor in the parent
    
        model...
        And the execution remains blocked after that...
        
        Can someone explain what are the semantic differences between cases 1 a
   nd 3
       ?
        Should case 3 function similarly to case 1, or doesn't this case make s
   ense
       ?
        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]
--------

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

Reply via email to