Interface KEdge

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

public interface KEdge extends KLabeledGraphElement, KEdgeLayout
A representation of the model object 'KEdge'. An edge must be assigned a source and a target node, but the source and target ports are optional. The source and target references are opposite to the lists of outgoing and incoming edges of nodes, respectively. The source and target port references are not opposite to the ports' list of edges, but despite that, setting these references will automatically update the edges reference of the corresponding port.

The following features are supported:

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

    • getSource

      KNode getSource()
      Returns the value of the 'Source' container reference. It is bidirectional and its opposite is 'Outgoing Edges'. The source node is expected to be set for each edge. This is especially important because the source node is defined to be the container of the edge, which is relevant for many EMF features such as XML storage or copying. The source reference is opposite to the nodes' list of outgoing edges, hence those references are synchronized automatically.
      Returns:
      the value of the 'Source' container reference.
      See Also:
      EMF generated code
      EMF model element
      opposite="outgoingEdges" required="true" transient="false"
    • setSource

      void setSource(KNode value)
      Sets the value of the 'Source' container reference.
      Parameters:
      value - the new value of the 'Source' container reference.
      See Also:
      EMF generated code
    • getTarget

      KNode getTarget()
      Returns the value of the 'Target' reference. It is bidirectional and its opposite is 'Incoming Edges'. The target node is expected to be set for each edge. The target reference is opposite to the nodes' list of incoming edges, hence those references are synchronized automatically.
      Returns:
      the value of the 'Target' reference.
      See Also:
      EMF generated code
      EMF model element
      opposite="incomingEdges" required="true"
    • setTarget

      void setTarget(KNode value)
      Sets the value of the 'Target' reference.
      Parameters:
      value - the new value of the 'Target' reference.
      See Also:
      EMF generated code
    • getSourcePort

      KPort getSourcePort()
      Returns the value of the 'Source Port' reference. This reference is optional, as a node may have no ports. The reference is not opposite to the list of edges stored by ports, but setting it automatically updates that list.
      Returns:
      the value of the 'Source Port' reference.
      See Also:
      EMF generated code
      EMF model element
    • setSourcePort

      void setSourcePort(KPort value)
      Sets the value of the 'Source Port' reference.
      Parameters:
      value - the new value of the 'Source Port' reference.
      See Also:
      EMF generated code
    • getTargetPort

      KPort getTargetPort()
      Returns the value of the 'Target Port' reference. This reference is optional, as a node may have no ports. The reference is not opposite to the list of edges stored by ports, but setting it automatically updates that list.
      Returns:
      the value of the 'Target Port' reference.
      See Also:
      EMF generated code
      EMF model element
    • setTargetPort

      void setTargetPort(KPort value)
      Sets the value of the 'Target Port' reference.
      Parameters:
      value - the new value of the 'Target Port' reference.
      See Also:
      EMF generated code