public class DStar extends Object implements DynamicAlgorithm, org.graphstream.stream.Sink
| Modifier and Type | Field and Description |
|---|---|
static String |
COST_ATTRIBUTE |
static String |
STATE_ATTRIBUTE |
| Constructor and Description |
|---|
DStar() |
| Modifier and Type | Method and Description |
|---|---|
void |
compute()
Run the algorithm.
|
void |
edgeAdded(String sourceId,
long timeId,
String edgeId,
String fromNodeId,
String toNodeId,
boolean directed) |
void |
edgeAttributeAdded(String sourceId,
long timeId,
String edgeId,
String attribute,
Object value) |
void |
edgeAttributeChanged(String sourceId,
long timeId,
String edgeId,
String attribute,
Object oldValue,
Object newValue) |
void |
edgeAttributeRemoved(String sourceId,
long timeId,
String edgeId,
String attribute) |
void |
edgeRemoved(String sourceId,
long timeId,
String edgeId) |
org.graphstream.algorithm.DStar.State |
getState(org.graphstream.graph.Node n) |
void |
graphAttributeAdded(String sourceId,
long timeId,
String attribute,
Object value) |
void |
graphAttributeChanged(String sourceId,
long timeId,
String attribute,
Object oldValue,
Object newValue) |
void |
graphAttributeRemoved(String sourceId,
long timeId,
String attribute) |
void |
graphCleared(String sourceId,
long timeId) |
void |
init(org.graphstream.graph.Graph graph)
Initialization of the algorithm.
|
void |
init(org.graphstream.graph.Node source,
org.graphstream.graph.Node target,
org.graphstream.graph.Graph graph) |
static void |
main(String... args) |
void |
markPath(String attribute,
Object on,
Object off) |
void |
nodeAdded(String sourceId,
long timeId,
String nodeId) |
void |
nodeAttributeAdded(String sourceId,
long timeId,
String nodeId,
String attribute,
Object value) |
void |
nodeAttributeChanged(String sourceId,
long timeId,
String nodeId,
String attribute,
Object oldValue,
Object newValue) |
void |
nodeAttributeRemoved(String sourceId,
long timeId,
String nodeId,
String attribute) |
void |
nodeRemoved(String sourceId,
long timeId,
String nodeId) |
void |
stepBegins(String sourceId,
long timeId,
double step) |
void |
terminate()
Terminate the dynamic algorithm.
|
public static final String STATE_ATTRIBUTE
public static final String COST_ATTRIBUTE
public void terminate()
DynamicAlgorithmterminate in interface DynamicAlgorithmAlgorithm.init(org.graphstream.graph.Graph)public void compute()
AlgorithmAlgorithm.init(Graph) method has to be called
before computing.compute in interface AlgorithmAlgorithm.init(Graph)public void init(org.graphstream.graph.Graph graph)
AlgorithmAlgorithm.compute() method to initialize or reset the algorithm according
to the new given graph.public void init(org.graphstream.graph.Node source,
org.graphstream.graph.Node target,
org.graphstream.graph.Graph graph)
public org.graphstream.algorithm.DStar.State getState(org.graphstream.graph.Node n)
public void edgeAttributeAdded(String sourceId, long timeId, String edgeId, String attribute, Object value)
edgeAttributeAdded in interface org.graphstream.stream.AttributeSinkpublic void edgeAttributeChanged(String sourceId, long timeId, String edgeId, String attribute, Object oldValue, Object newValue)
edgeAttributeChanged in interface org.graphstream.stream.AttributeSinkpublic void edgeAttributeRemoved(String sourceId, long timeId, String edgeId, String attribute)
edgeAttributeRemoved in interface org.graphstream.stream.AttributeSinkpublic void graphAttributeAdded(String sourceId, long timeId, String attribute, Object value)
graphAttributeAdded in interface org.graphstream.stream.AttributeSinkpublic void graphAttributeChanged(String sourceId, long timeId, String attribute, Object oldValue, Object newValue)
graphAttributeChanged in interface org.graphstream.stream.AttributeSinkpublic void graphAttributeRemoved(String sourceId, long timeId, String attribute)
graphAttributeRemoved in interface org.graphstream.stream.AttributeSinkpublic void nodeAttributeAdded(String sourceId, long timeId, String nodeId, String attribute, Object value)
nodeAttributeAdded in interface org.graphstream.stream.AttributeSinkpublic void nodeAttributeChanged(String sourceId, long timeId, String nodeId, String attribute, Object oldValue, Object newValue)
nodeAttributeChanged in interface org.graphstream.stream.AttributeSinkpublic void nodeAttributeRemoved(String sourceId, long timeId, String nodeId, String attribute)
nodeAttributeRemoved in interface org.graphstream.stream.AttributeSinkpublic void edgeAdded(String sourceId, long timeId, String edgeId, String fromNodeId, String toNodeId, boolean directed)
edgeAdded in interface org.graphstream.stream.ElementSinkpublic void edgeRemoved(String sourceId, long timeId, String edgeId)
edgeRemoved in interface org.graphstream.stream.ElementSinkpublic void graphCleared(String sourceId, long timeId)
graphCleared in interface org.graphstream.stream.ElementSinkpublic void nodeAdded(String sourceId, long timeId, String nodeId)
nodeAdded in interface org.graphstream.stream.ElementSinkpublic void nodeRemoved(String sourceId, long timeId, String nodeId)
nodeRemoved in interface org.graphstream.stream.ElementSinkpublic void stepBegins(String sourceId, long timeId, double step)
stepBegins in interface org.graphstream.stream.ElementSinkpublic static void main(String... args)
Copyright © 2015. All rights reserved.