Package de.cau.cs.kieler.klighd.kgraph
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
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 Summary
Methods inherited from interface de.cau.cs.kieler.klighd.kgraph.EMapPropertyHolder
getPersistentEntries, getProperties, makePersistentMethods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface org.eclipse.elk.graph.properties.IPropertyHolder
copyProperties, getAllProperties, getProperty, hasProperty, setPropertyMethods inherited from interface de.cau.cs.kieler.klighd.kgraph.KGraphElement
getData, getData, getDataMethods inherited from interface de.cau.cs.kieler.klighd.kgraph.KLabeledGraphElement
getLabelsMethods inherited from interface de.cau.cs.kieler.klighd.kgraph.KLayoutData
isModified, resetModificationFlagMethods inherited from interface de.cau.cs.kieler.klighd.kgraph.KShapeLayout
applyVector, createVector, getHeight, getInsets, getWidth, getXpos, getYpos, setHeight, setInsets, setPos, setSize, setWidth, setXpos, setYposMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
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
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 typeKEdge. 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 useKEdge.setSourcePort(KPort)orKEdge.setTargetPort(KPort)instead.- Returns:
- the value of the 'Edges' reference list.
- See Also:
- EMF generated code
- EMF model element
- transient="true" derived="true"
-