
VisualModelReference |
ptolemy.vergil.actor.lib.VisualModelReference |
This is an atomic actor that can execute and/or open a model specified by
a file or URL. This can be used to define an actor whose firing behavior
is given by a complete execution of another model. It extends the base
class with the following attributes and associated capabilities.
- openOnFiring:
The value of this string attribute determines what open
happens when the fire() method is invoked. The recognized
values are:
- "do not open" (the default)
- "open in Vergil"
- "open in Vergil (full screen)"
Note that it is dangerous to use the full-screen mode because it
becomes difficult to stop execution of the model that contains this
actor. In full-screen mode, the referenced model will consume
the entire screen. Stopping that execution will only serve to
stop the current iteration, and very likely, another iteration will
begin immediately and again occupy the entire screen.
Use this option with care.
- closeOnPostfire:
The value of this string attribute determines what happens
in the postfire() method. The recognized values are:
- "do nothing" (the default)
- "close Vergil graph"
Limitations:
-
FIXME: Supporting full-screen operation creates a dependence on vergil.
Without that, this actor could be in the actor package. Need to figure
out how to remove this dependence.
Author(s): Edward A. Lee
Version:$Id: VisualModelReference.java,v 1.29 2005/07/08 19:59:42 cxh Exp $
Pt.Proposed Rating:Yellow (eal)
Pt.Accepted Rating:Red (eal)
openOnFiring
The value of this string parameter determines what open
happens when the fire() method is invoked. The recognized
values are:
- "do not open" (the default)
- "open in Vergil"
- "open in Vergil (full screen)"
closeOnPostfire
The value of this string parameter determines what close action
happens in the postfire() method. The recognized values are:
- "do nothing" (the default)
- "close Vergil graph"