|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Edge
An Edge
represents a relationship between two Node
s.
The attributes of that relationship are defined by the Edge
's
Label
.
An Edge
can be directed or undirected.
If the Edge
is directed then the relationship is "one-way"
from Node
"A
" to Node
"B
".
An example of such a relationship is "physically contains", where the entity
represented by Node
"B
" is physically contained in
the entity represented by Node
"A
" (e.g., Santa
Clara county is physically contained in the state of California). If the
Edge
is undirected then the relationship is symetric,
meaning that it holds both ways. An example of such a relationship is "shares
common border", where the entity represented by Node
"A
"
shares a common border with the entity represented by Node
"B
"
(e.g., Santa Clara county shares a common border with Santa Cruz county).
Graph
Field Summary | |
---|---|
static java.lang.String |
URI_TYPE_EDGE_SEGMENT
This is the segment of the type URI that prefixes all other segments in a edge URI. |
Method Summary | |
---|---|
Node |
getA()
|
Node |
getB()
|
EdgeLabel |
getLabel()
|
org.eclipse.emf.common.util.URI |
getNodeAURI()
|
org.eclipse.emf.common.util.URI |
getNodeBURI()
|
Node |
getOtherNode(Node node)
|
boolean |
isDirected()
|
boolean |
isDirectedAt(Node node)
|
void |
setA(Node value)
Sets the value of the ' A ' reference. |
void |
setB(Node value)
Sets the value of the ' B ' reference. |
void |
setDirected(boolean value)
Sets the value of the ' Directed ' attribute. |
void |
setLabel(EdgeLabel value)
Sets the value of the ' Label ' containment reference. |
void |
setNodeAURI(org.eclipse.emf.common.util.URI value)
Sets the value of the ' Node AURI ' attribute. |
void |
setNodeBURI(org.eclipse.emf.common.util.URI value)
Sets the value of the ' Node BURI ' attribute. |
Methods inherited from interface org.eclipse.ohf.stem.core.common.Identifiable |
---|
getDublinCore, getTypeURI, getURI, sane, setDublinCore, setTypeURI, setURI |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Field Detail |
---|
static final java.lang.String URI_TYPE_EDGE_SEGMENT
Method Detail |
---|
Node getA()
Node
of the edge. Directed edges go from
Node
A to Node
B. In a graph fragment this value
may not yet be set.void setA(Node value)
A
' reference.
value
- the new value of the 'A' reference.getA()
org.eclipse.emf.common.util.URI getNodeAURI()
Node
A.void setNodeAURI(org.eclipse.emf.common.util.URI value)
Node AURI
' attribute.
value
- the new value of the 'Node AURI' attribute.getNodeAURI()
Node getB()
Node
of the edge. Directed edges go from
Node
A to Node
B. In a graph fragment this value
may not yet be set.void setB(Node value)
B
' reference.
value
- the new value of the 'B' reference.getB()
org.eclipse.emf.common.util.URI getNodeBURI()
Node
B.void setNodeBURI(org.eclipse.emf.common.util.URI value)
Node BURI
' attribute.
value
- the new value of the 'Node BURI' attribute.getNodeBURI()
Node getOtherNode(Node node) throws java.lang.IllegalArgumentException
node
- one of the two Node
s of the Edge
Node
A if Node
B is passed in, otherwise return
Node
B if Node
A is passed in.
java.lang.IllegalArgumentException
- if the Node
passed in is not either Node
A
or Node
B of this Edge
.EdgeLabel getLabel()
EdgeLabel
of the Edge
, if it exists.void setLabel(EdgeLabel value)
Label
' containment reference.
value
- the new value of the 'Label' containment reference.getLabel()
boolean isDirected()
true
if the Edge
is a directed
Edge
(directed Edge
s are always
from Node
A to Node
B).void setDirected(boolean value)
Directed
' attribute.
value
- the new value of the 'Directed' attribute.isDirected()
boolean isDirectedAt(Node node)
node
- the Node
under test
true
if the Edge
is a directed
Edge
and the Node
under test is
Node
B.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |