public abstract class AbstractDomainGraph<V extends AbstractDomainVertex,E extends AbstractDomainEdge> extends Object implements ImmutableGraph<V,E>
GenericGraph.
 Can be extended by a domain specific graph class.
 It contains no data of it's own but operates on the data of it's wrapped GenericGraph.| Modifier and Type | Class and Description | 
|---|---|
static class  | 
AbstractDomainGraph.AbstractDomainGraphBuilder<T extends AbstractDomainGraph.AbstractDomainGraphBuilder,V extends AbstractDomainVertex,E extends AbstractDomainEdge>  | 
| Constructor and Description | 
|---|
AbstractDomainGraph(GenericGraph genericGraph)  | 
| Modifier and Type | Method and Description | 
|---|---|
GenericGraph | 
asGenericGraph()  | 
protected abstract E | 
convert(GenericEdge edge)  | 
protected abstract ImmutableGraph<V,E> | 
convert(GenericGraph graph)  | 
protected abstract V | 
convert(GenericVertex vertex)  | 
boolean | 
equals(Object o)  | 
Collection<E> | 
getConnectingEdges(V vertex)  | 
Focus | 
getDefaultFocus()  | 
String | 
getDescription()
A short description of the graph to help user's understand what the context of the graph is, e.g.:
 "This provider shows the hierarchy of the defined Business Services and their computed operational states." 
 | 
E | 
getEdge(String id)  | 
List<String> | 
getEdgeIds()  | 
List<E> | 
getEdges()  | 
String | 
getLabel()
A user friendly name/label of the graph, e.g. 
 | 
String | 
getNamespace()
The namespace of the graph. 
 | 
Collection<V> | 
getNeighbors(V vertex)  | 
V | 
getVertex(String id)  | 
List<String> | 
getVertexIds()  | 
List<V> | 
getVertices()  | 
ImmutableGraph<V,E> | 
getView(Collection<V> verticesInFocus,
       int szl)  | 
int | 
hashCode()  | 
List<E> | 
resolveEdges(Collection<String> edgeIds)  | 
V | 
resolveVertex(VertexRef vertexRef)  | 
List<V> | 
resolveVertices(Collection<String> vertexIds)  | 
List<V> | 
resolveVertices(NodeRef nodeRef)  | 
String | 
toString()  | 
public AbstractDomainGraph(GenericGraph genericGraph)
public List<V> getVertices()
getVertices in interface ImmutableGraph<V extends AbstractDomainVertex,E extends AbstractDomainEdge>public List<E> getEdges()
getEdges in interface ImmutableGraph<V extends AbstractDomainVertex,E extends AbstractDomainEdge>protected abstract ImmutableGraph<V,E> convert(GenericGraph graph)
protected abstract V convert(GenericVertex vertex)
protected abstract E convert(GenericEdge edge)
public V getVertex(String id)
getVertex in interface ImmutableGraph<V extends AbstractDomainVertex,E extends AbstractDomainEdge>public E getEdge(String id)
getEdge in interface ImmutableGraph<V extends AbstractDomainVertex,E extends AbstractDomainEdge>public List<String> getVertexIds()
getVertexIds in interface ImmutableGraph<V extends AbstractDomainVertex,E extends AbstractDomainEdge>public List<String> getEdgeIds()
getEdgeIds in interface ImmutableGraph<V extends AbstractDomainVertex,E extends AbstractDomainEdge>public ImmutableGraph<V,E> getView(Collection<V> verticesInFocus, int szl)
getView in interface ImmutableGraph<V extends AbstractDomainVertex,E extends AbstractDomainEdge>public List<V> resolveVertices(NodeRef nodeRef)
resolveVertices in interface ImmutableGraph<V extends AbstractDomainVertex,E extends AbstractDomainEdge>public List<V> resolveVertices(Collection<String> vertexIds)
resolveVertices in interface ImmutableGraph<V extends AbstractDomainVertex,E extends AbstractDomainEdge>public V resolveVertex(VertexRef vertexRef)
resolveVertex in interface ImmutableGraph<V extends AbstractDomainVertex,E extends AbstractDomainEdge>public List<E> resolveEdges(Collection<String> edgeIds)
resolveEdges in interface ImmutableGraph<V extends AbstractDomainVertex,E extends AbstractDomainEdge>public Collection<V> getNeighbors(V vertex)
getNeighbors in interface ImmutableGraph<V extends AbstractDomainVertex,E extends AbstractDomainEdge>public Collection<E> getConnectingEdges(V vertex)
getConnectingEdges in interface ImmutableGraph<V extends AbstractDomainVertex,E extends AbstractDomainEdge>public Focus getDefaultFocus()
getDefaultFocus in interface ImmutableGraph<V extends AbstractDomainVertex,E extends AbstractDomainEdge>public GenericGraph asGenericGraph()
asGenericGraph in interface ImmutableGraph<V extends AbstractDomainVertex,E extends AbstractDomainEdge>public String getNamespace()
GraphInfogetNamespace in interface GraphInfopublic String getDescription()
GraphInfogetDescription in interface GraphInfopublic String getLabel()
GraphInfoCopyright © 2021. All rights reserved.