public abstract class GraphGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.ogema.core.logging.OgemaLogger |
logger |
static String |
PATH_SEP |
| Constructor and Description |
|---|
GraphGenerator(org.ogema.core.logging.OgemaLogger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEdge(org.ogema.core.model.Resource start,
org.ogema.core.model.Resource end)
Adds a new, directed edge to be graph.
|
abstract void |
addEdge(org.ogema.core.model.Resource start,
org.ogema.core.model.Resource end,
EdgeStyle style)
Adds a new, directed edge to be graph.
|
abstract void |
addGroup(Collection<org.ogema.core.model.Resource> resources,
String name)
Creates a group of resources.
|
abstract void |
addNode(org.ogema.core.model.Resource node)
Adds a new node to the graph.
|
abstract void |
addNode(org.ogema.core.model.Resource node,
NodeStyle style)
Adds a new node to the graph.
|
abstract Object |
finish()
Finalize the graph.
|
Object |
generateAllResourcesGraph(org.ogema.core.resourcemanager.ResourceAccess resAcc) |
Object |
generateConnectionsGraph(org.ogema.core.resourcemanager.ResourceAccess resAcc) |
<T extends org.ogema.core.model.Resource> |
generateGraph(org.ogema.core.resourcemanager.ResourceAccess resAcc,
Class<T> clazz) |
Object |
generateResourcesGraph(Class<? extends org.ogema.core.model.Resource> topLevelType,
org.ogema.core.resourcemanager.ResourceAccess resAcc) |
abstract String |
getGraph()
Gets the constructed graph.
|
protected String |
getSimpleValue(org.ogema.core.model.ValueResource resource) |
abstract void |
init()
Initialize collecting nodes and edges.
|
public static final String PATH_SEP
protected org.ogema.core.logging.OgemaLogger logger
public abstract void init()
public abstract void addNode(org.ogema.core.model.Resource node)
node - Resource that is to be represented as a node.public abstract void addNode(org.ogema.core.model.Resource node,
NodeStyle style)
node - Resource that is to be represented as a node.style - Display style for this node.public void addEdge(org.ogema.core.model.Resource start,
org.ogema.core.model.Resource end)
addEdge(Resource, Resource, EdgeStyle)
with style = null.start - Start node of the edge.end - End node of the edge.public abstract void addEdge(org.ogema.core.model.Resource start,
org.ogema.core.model.Resource end,
EdgeStyle style)
start - Start node of the edge.end - End node of the edge.style - draw style used to display the edge.public abstract void addGroup(Collection<org.ogema.core.model.Resource> resources, String name)
resources - Set of resources to add to the group.name - Name of the group.public abstract Object finish()
public abstract String getGraph()
finish()
has been invoked.public Object generateAllResourcesGraph(org.ogema.core.resourcemanager.ResourceAccess resAcc)
public Object generateResourcesGraph(Class<? extends org.ogema.core.model.Resource> topLevelType, org.ogema.core.resourcemanager.ResourceAccess resAcc)
public <T extends org.ogema.core.model.Resource> Object generateGraph(org.ogema.core.resourcemanager.ResourceAccess resAcc, Class<T> clazz)
public Object generateConnectionsGraph(org.ogema.core.resourcemanager.ResourceAccess resAcc)
protected String getSimpleValue(org.ogema.core.model.ValueResource resource)
Copyright © 2018. All rights reserved.