Package science.aist.gtf.graph.impl
Class AbstractVertex<V,E>
- java.lang.Object
-
- science.aist.gtf.graph.impl.MetaTagCollectionImpl
-
- science.aist.gtf.graph.impl.AbstractVertex<V,E>
-
- Type Parameters:
V
- the type of the decorated vertex valueE
- the type of the decorated edge value
- All Implemented Interfaces:
MetaTagCollection
,Vertex<V,E>
- Direct Known Subclasses:
VertexImpl
,VertexViewImpl
public abstract class AbstractVertex<V,E> extends MetaTagCollectionImpl implements Vertex<V,E>
Abstract base class to be used for different vertex implementation, that are based on a graph state.
- Since:
- 1.0
- Author:
- Andreas Pointner
-
-
Constructor Summary
Constructors Constructor Description AbstractVertex()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Collection<Vertex<V,E>>
getAdjacentVertices()
vertex has a collection of edges, thus pointing to several other verticesCollection<Edge<V,E>>
getEdges()
Collection<Edge<V,E>>
getIncomingEdges()
Returns all edges that are incoming into this vertex.Collection<Edge<V,E>>
getOutgoingEdges()
Returns all edges which are outgoing from this vertex.abstract void
setElement(V element)
Method that allows to change the decorated element - this is especially needed at graph creation time.-
Methods inherited from class science.aist.gtf.graph.impl.MetaTagCollectionImpl
addMetaTag, getMetaTags, removeMetaTag
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface science.aist.gtf.graph.MetaTagCollection
addMetaTag, getMetaTags, getMetaTagValue, getMetaTagValue, removeMetaTag, removeMetaTag, tryGetMetaTagValue, tryGetMetaTagValue
-
Methods inherited from interface science.aist.gtf.graph.Vertex
getElement
-
-
-
-
Method Detail
-
getAdjacentVertices
public Collection<Vertex<V,E>> getAdjacentVertices()
Description copied from interface:Vertex
vertex has a collection of edges, thus pointing to several other vertices- Specified by:
getAdjacentVertices
in interfaceVertex<V,E>
- Returns:
- a collection of vertex
-
getEdges
public Collection<Edge<V,E>> getEdges()
-
getIncomingEdges
public Collection<Edge<V,E>> getIncomingEdges()
Description copied from interface:Vertex
Returns all edges that are incoming into this vertex.
If this vertex is seen as v, then all edges e are returned that match x-(e)->v
- Specified by:
getIncomingEdges
in interfaceVertex<V,E>
- Returns:
- returns a collection of edges
-
getOutgoingEdges
public Collection<Edge<V,E>> getOutgoingEdges()
Description copied from interface:Vertex
Returns all edges which are outgoing from this vertex.
If this vertex is seen as v, then all edges e are returned that match v-(e)->x
- Specified by:
getOutgoingEdges
in interfaceVertex<V,E>
- Returns:
- returns a collection of edges
-
setElement
public abstract void setElement(V element)
Method that allows to change the decorated element - this is especially needed at graph creation time.- Parameters:
element
- The new decorated element.
-
-