S - source node of the relationT - target node of the relationpublic interface Relation<S extends Node,T extends Node> extends IdentifiableElement
Label. An relation always belong to 0..1 Graphs and can also
be contained in one or more Layer s.| Modifier and Type | Method and Description |
|---|---|
void |
addLayer(Layer layer)
Adds this relation to the passed layer.
|
Relation<S,T> |
getDelegate()
Returns the delegate object.
|
Graph |
getGraph()
Returns the container graph of this relation.
|
Set<? extends Layer> |
getLayers()
Returns all layers containing this relation.
|
S |
getSource()
Returns the source node of this relation object.
|
T |
getTarget()
Returns the target node of this relation object.
|
void |
removeLayer(Layer layer)
Removes this relation from the passed layer.
|
void |
setGraph(Graph graph)
Sets the container graph of this relation.
|
void |
setSource(S source)
Returns the source node of this relation object.
|
void |
setTarget(T target)
Sets the target node of this relation object.
|
getId, getIdentifier, setId, setIdentifieraddLabel, containsLabel, getLabel, getLabel, getLabels, getLabelsByNamespace, removeAll, removeLabel, removeLabel, sizeLabelsRelation<S,T> getDelegate()
#delegate is not null, all
functions of this method are delegated to the delegate object. Setting
#delegate makes this object to a container.S getSource()
void setSource(S source)
source - source nodeT getTarget()
void setTarget(T target)
target - target nodeGraph getGraph()
void setGraph(Graph graph)
Graph.getRelations() will return a list containing this relation.graph - graph which contains this relationSet<? extends Layer> getLayers()
void addLayer(Layer layer)
layer - to which this node should be addedvoid removeLayer(Layer layer)
layer - from which this node should be removedCopyright © 2009–2016 Humboldt-Universität zu Berlin, INRIA. All rights reserved.