Package de.cau.cs.kieler.klighd.kgraph
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
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 Summary
Modifier and TypeMethodDescriptionReturns the value of the 'Source' container reference.Returns the value of the 'Source Port' reference.Returns the value of the 'Target' reference.Returns the value of the 'Target Port' reference.voidSets the value of the 'Source' container reference.voidsetSourcePort(KPort value) Sets the value of the 'Source Port' reference.voidSets the value of the 'Target' reference.voidsetTargetPort(KPort value) Sets the value of the 'Target Port' reference.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.KEdgeLayout
applyVectorChain, createVectorChain, getBendPoints, getSourcePoint, getTargetPoint, setSourcePoint, setTargetPointMethods 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 org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
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
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
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
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
Sets the value of the 'Target Port' reference.- Parameters:
value- the new value of the 'Target Port' reference.- See Also:
- EMF generated code
-