Class PtolemyLayoutAction

  • All Implemented Interfaces:
    IGuiAction

    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.

    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Christopher Brooks, based on KielerLayoutAction by Christian Motika and BasicGraphFrame by Steve Neuendorffer and Edward A. Lee
    Pt.AcceptedRating:
    Red (cmot)
    Pt.ProposedRating:
    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
        Parameters:
        model - the model