Interface KNode

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:
KNodeImpl

public interface KNode extends KLabeledGraphElement, KShapeLayout
A representation of the model object 'KNode'. All nodes except exactly one node must have an assigned parent node. The node without parent is the top node of the graph and represents the graph itself. Each node must be assigned a label.

The parent-child relationship of nodes can be used to describe hierarchy in nested graphs.

The following features are supported:

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

    • getChildren

      org.eclipse.emf.common.util.EList<KNode> getChildren()
      Returns the value of the 'Children' containment reference list. The list contents are of type KNode. It is bidirectional and its opposite is 'Parent'. The children together with their edges form a sub-graph that is contained in this parent node.
      Returns:
      the value of the 'Children' containment reference list.
      See Also:
      EMF generated code
      EMF model element
      opposite="parent" containment="true"
    • getParent

      KNode getParent()
      Returns the value of the 'Parent' container reference. It is bidirectional and its opposite is 'Children'. The parent node must be null if and only if this is the top node of the graph structure.
      Returns:
      the value of the 'Parent' container reference.
      See Also:
      EMF generated code
      EMF model element
      opposite="children" transient="false"
    • setParent

      void setParent(KNode value)
      Sets the value of the 'Parent' container reference.
      Parameters:
      value - the new value of the 'Parent' container reference.
      See Also:
      EMF generated code
    • getPorts

      org.eclipse.emf.common.util.EList<KPort> getPorts()
      Returns the value of the 'Ports' containment reference list. The list contents are of type KPort. It is bidirectional and its opposite is 'Node'. Each node may have an arbitrary number of ports. Edges may or may not be connected to ports.
      Returns:
      the value of the 'Ports' containment reference list.
      See Also:
      EMF generated code
      EMF model element
      opposite="node" containment="true"
    • getOutgoingEdges

      org.eclipse.emf.common.util.EList<KEdge> getOutgoingEdges()
      Returns the value of the 'Outgoing Edges' containment reference list. The list contents are of type KEdge. It is bidirectional and its opposite is 'Source'.

      If the meaning of the 'Outgoing Edges' containment reference list isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'Outgoing Edges' containment reference list.
      See Also:
      EMF generated code
      EMF model element
      opposite="source" containment="true"
    • getIncomingEdges

      org.eclipse.emf.common.util.EList<KEdge> getIncomingEdges()
      Returns the value of the 'Incoming Edges' reference list. The list contents are of type KEdge. It is bidirectional and its opposite is 'Target'.

      If the meaning of the 'Incoming Edges' reference list isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'Incoming Edges' reference list.
      See Also:
      EMF generated code
      EMF model element
      opposite="target"