Class KielerLayoutAction

  • All Implemented Interfaces:
    Filter, IGuiAction

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

    This action implements the Filter interface to check whether a given model is supported.

    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Christian Motika
    Pt.AcceptedRating:
    Red (cmot)
    Pt.ProposedRating:
    Red (cmot)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.lang.Object o)
      Check whether the given model is supported by this layout action.
      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

      • KielerLayoutAction

        public KielerLayoutAction()
    • 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 KIELER layouter is called with placing and routing. The routing uses bend point annotations.
        Specified by:
        doAction in interface IGuiAction
        Parameters:
        model - the model
      • accept

        public boolean accept​(java.lang.Object o)
        Check whether the given model is supported by this layout action.
        Specified by:
        accept in interface Filter
        Parameters:
        o - The object to be be checked.
        Returns:
        true if the model can be laid out with this action.