Interface KPort

All Superinterfaces:
EMapPropertyHolder, org.eclipse.emf.ecore.EObject, org.eclipse.elk.graph.properties.IPropertyHolder, KGraphElement, KLabeledGraphElement, KLayoutData, KShapeLayout, org.eclipse.emf.common.notify.Notifier
All Known Implementing Classes:
KPortImpl

public interface KPort extends KLabeledGraphElement, KShapeLayout
A representation of the model object 'KPort'. Each port must be assigned a containing node. A port may contain incoming edges as well as outgoing edges, but usually either one or the other kind is referenced. The list of edges is not opposite to the edges' source or target port reference. However, the list content is automatically updated when those references are set.

Since the information contained in this list is redundant, it is marked as transient, i.e. it is not serialized.

The following features are supported:

See Also:
EMF generated code
EMF model element
  • Method Details

    • getNode

      KNode getNode()
      Returns the value of the 'Node' container reference. It is bidirectional and its opposite is 'Ports'. Each port must be assigned a containing node. This is especially important because the node is defined to be the container of the port, which is relevant for many EMF features such as XML storage or copying.
      Returns:
      the value of the 'Node' container reference.
      See Also:
      EMF generated code
      EMF model element
      opposite="ports" required="true" transient="false"
    • setNode

      void setNode(KNode value)
      Sets the value of the 'Node' container reference.
      Parameters:
      value - the new value of the 'Node' container reference.
      See Also:
      EMF generated code
    • getEdges

      org.eclipse.emf.common.util.EList<KEdge> getEdges()
      Returns the value of the 'Edges' reference list. The list contents are of type KEdge. Edges in this list may be incoming as well as outgoing with respect to the containing node. The list of edges is not opposite to the edges' source or target port reference. Just adding an edge to this list does not imply that the source or target port reference is set, since it is unclear which reference to pick. However, the list content is automatically updated when one of those references is set or unset. Therefore it is advisable not to modify this list directly, but to use KEdge.setSourcePort(KPort) or KEdge.setTargetPort(KPort) instead.
      Returns:
      the value of the 'Edges' reference list.
      See Also:
      EMF generated code
      EMF model element
      transient="true" derived="true"