public class MetadataGraph extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_EDGES |
static int |
DEFAULT_VERTICES |
Constructor and Description |
---|
MetadataGraph(int nVertices)
init graph
|
MetadataGraph(int nVertices,
int nEdges) |
MetadataGraph(MetadataGraphVertex entry)
construct a single vertex
|
MetadataGraph(MetadataTreeNode tree)
construct graph from a "dirty" tree
|
MetadataGraph(MetadataTreeNode tree,
boolean versionedVertices,
boolean scopedVertices)
construct graph from a "dirty" tree
|
Modifier and Type | Method and Description |
---|---|
MetadataGraph |
addEdge(MetadataGraphVertex vFrom,
MetadataGraphVertex vTo,
MetadataGraphEdge e) |
MetadataGraphVertex |
addVertex(ArtifactMetadata md) |
MetadataGraphVertex |
findVertex(ArtifactMetadata md) |
List<MetadataGraphEdge> |
getEdgesBetween(MetadataGraphVertex vFrom,
MetadataGraphVertex vTo) |
MetadataGraphVertex |
getEntry() |
List<MetadataGraphEdge> |
getExcidentEdges(MetadataGraphVertex vertex) |
List<MetadataGraphEdge> |
getIncidentEdges(MetadataGraphVertex vertex) |
ArtifactScopeEnum |
getScope() |
TreeSet<MetadataGraphVertex> |
getVertices() |
boolean |
isEmpty() |
boolean |
isEmptyEdges() |
boolean |
isScopedVertices() |
boolean |
isVersionedVertices() |
MetadataGraph |
removeVertex(MetadataGraphVertex v) |
void |
setEntry(MetadataGraphVertex entry) |
void |
setScope(ArtifactScopeEnum scope) |
void |
setScopedVertices(boolean scopedVertices) |
void |
setVersionedVertices(boolean versionedVertices) |
String |
toString() |
public static final int DEFAULT_VERTICES
public static final int DEFAULT_EDGES
public MetadataGraph(int nVertices)
public MetadataGraph(int nVertices, int nEdges)
public MetadataGraph(MetadataGraphVertex entry) throws MetadataResolutionException
MetadataResolutionException
public MetadataGraph(MetadataTreeNode tree) throws MetadataResolutionException
MetadataResolutionException
public MetadataGraph(MetadataTreeNode tree, boolean versionedVertices, boolean scopedVertices) throws MetadataResolutionException
tree
- "dirty" tree rootversionedVertices
- true if graph nodes should be versioned (different versions -> different nodes)scopedVertices
- true if graph nodes should be versioned and scoped (different versions and/or scopes -> different nodes)MetadataResolutionException
public MetadataGraphVertex findVertex(ArtifactMetadata md)
public MetadataGraphVertex addVertex(ArtifactMetadata md)
public List<MetadataGraphEdge> getEdgesBetween(MetadataGraphVertex vFrom, MetadataGraphVertex vTo)
public MetadataGraph addEdge(MetadataGraphVertex vFrom, MetadataGraphVertex vTo, MetadataGraphEdge e) throws MetadataResolutionException
MetadataResolutionException
public MetadataGraph removeVertex(MetadataGraphVertex v)
public MetadataGraphVertex getEntry()
public void setEntry(MetadataGraphVertex entry)
public TreeSet<MetadataGraphVertex> getVertices()
public List<MetadataGraphEdge> getIncidentEdges(MetadataGraphVertex vertex)
public List<MetadataGraphEdge> getExcidentEdges(MetadataGraphVertex vertex)
public boolean isVersionedVertices()
public void setVersionedVertices(boolean versionedVertices)
public boolean isScopedVertices()
public void setScopedVertices(boolean scopedVertices)
public ArtifactScopeEnum getScope()
public void setScope(ArtifactScopeEnum scope)
public boolean isEmpty()
public boolean isEmptyEdges()
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.