|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KEdge
A representation of the model object 'Edge'. An edge must be assigned a source and a target node, but the source and target ports are optional.
The following features are supported:
KGraphPackage.getKEdge()
Method Summary | |
---|---|
KNode |
getSource()
Returns the value of the 'Source' container reference. |
KPort |
getSourcePort()
Returns the value of the 'Source Port' reference. |
KNode |
getTarget()
Returns the value of the 'Target' reference. |
KPort |
getTargetPort()
Returns the value of the 'Target Port' reference. |
void |
setSource(KNode value)
Sets the value of the ' Source ' container reference. |
void |
setSourcePort(KPort value)
Sets the value of the ' Source Port ' reference. |
void |
setTarget(KNode value)
Sets the value of the ' Target ' reference. |
void |
setTargetPort(KPort value)
Sets the value of the ' Target Port ' reference. |
Methods inherited from interface de.cau.cs.kieler.core.kgraph.KLabeledGraphElement |
---|
getLabels |
Methods inherited from interface de.cau.cs.kieler.core.kgraph.KGraphElement |
---|
getData, getData, getData |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Method Detail |
---|
KNode getSource()
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.
setSource(KNode)
,
KGraphPackage.getKEdge_Source()
,
KNode.getOutgoingEdges()
opposite | = | outgoingEdges |
required | = | true |
transient | = | false |
void setSource(KNode value)
Source
' container reference.
This automatically adds the edge to the the source node's list of outgoing
edges.
value
- the new value of the 'Source' container reference.getSource()
KNode getTarget()
Incoming Edges
'.
The target node is expected to be set for each edge.
setTarget(KNode)
,
KGraphPackage.getKEdge_Target()
,
KNode.getIncomingEdges()
opposite | = | incomingEdges |
required | = | true |
void setTarget(KNode value)
Target
' reference.
This automatically adds the edge to the target node's list of incoming
edges.
value
- the new value of the 'Target' reference.getTarget()
KPort getSourcePort()
setSourcePort(KPort)
,
KGraphPackage.getKEdge_SourcePort()
void setSourcePort(KPort value)
Source Port
' reference.
As this reference is not bidirectional, the edge must be added to
the list obtained with the getEdges
method
of the given port.
The node related to the source port must be equal to the source node of this edge.
value
- the new value of the 'Source Port' reference.getSourcePort()
KPort getTargetPort()
setTargetPort(KPort)
,
KGraphPackage.getKEdge_TargetPort()
void setTargetPort(KPort value)
Target Port
' reference.
As this reference is not bidirectional, the edge must be added to
the list obtained with the getEdges
method
of the given port.the given port.
The node related to the target port must be equal to the target node of this edge.
value
- the new value of the 'Target Port' reference.getTargetPort()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |