Class PtolemyLayoutAction

  • All Implemented Interfaces:

    public class PtolemyLayoutAction
    extends java.lang.Object
    implements IGuiAction
    Trigger the Ptolemy place and route automatic dataflow layout algorithm from withing the Vergil GUI. Operate on the current model, hence the model needs to be an input in the doAction() method.

    The Ptolemy layout mechanism produces layouts that are not as good as the Kieler layout mechanism, so use the @see KielerLayoutMechanism.

    Ptolemy II 10.0
    Christopher Brooks, based on KielerLayoutAction by Christian Motika and BasicGraphFrame by Steve Neuendorffer and Edward A. Lee
    Red (cmot)
    Red (cmot)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doAction​(NamedObj model)
      Layout the graph if the model is a CompositeActor.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PtolemyLayoutAction

        public PtolemyLayoutAction()
    • Method Detail

      • doAction

        public void doAction​(NamedObj model)
        Layout the graph if the model is a CompositeActor. Otherwise throw an exception. The frame type must be ActorGraphFrame. The Ptolemy layouter. is called with placing and routing.
        Specified by:
        doAction in interface IGuiAction
        model - the model