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()
DynamicAlgorithm
terminate
in interface DynamicAlgorithm
Algorithm.init(org.graphstream.graph.Graph)
public void compute()
Algorithm
Algorithm.init(Graph)
method has to be called
before computing.compute
in interface Algorithm
Algorithm.init(Graph)
public void init(org.graphstream.graph.Graph graph)
Algorithm
Algorithm.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.AttributeSink
public void edgeAttributeChanged(String sourceId, long timeId, String edgeId, String attribute, Object oldValue, Object newValue)
edgeAttributeChanged
in interface org.graphstream.stream.AttributeSink
public void edgeAttributeRemoved(String sourceId, long timeId, String edgeId, String attribute)
edgeAttributeRemoved
in interface org.graphstream.stream.AttributeSink
public void graphAttributeAdded(String sourceId, long timeId, String attribute, Object value)
graphAttributeAdded
in interface org.graphstream.stream.AttributeSink
public void graphAttributeChanged(String sourceId, long timeId, String attribute, Object oldValue, Object newValue)
graphAttributeChanged
in interface org.graphstream.stream.AttributeSink
public void graphAttributeRemoved(String sourceId, long timeId, String attribute)
graphAttributeRemoved
in interface org.graphstream.stream.AttributeSink
public void nodeAttributeAdded(String sourceId, long timeId, String nodeId, String attribute, Object value)
nodeAttributeAdded
in interface org.graphstream.stream.AttributeSink
public void nodeAttributeChanged(String sourceId, long timeId, String nodeId, String attribute, Object oldValue, Object newValue)
nodeAttributeChanged
in interface org.graphstream.stream.AttributeSink
public void nodeAttributeRemoved(String sourceId, long timeId, String nodeId, String attribute)
nodeAttributeRemoved
in interface org.graphstream.stream.AttributeSink
public void edgeAdded(String sourceId, long timeId, String edgeId, String fromNodeId, String toNodeId, boolean directed)
edgeAdded
in interface org.graphstream.stream.ElementSink
public void edgeRemoved(String sourceId, long timeId, String edgeId)
edgeRemoved
in interface org.graphstream.stream.ElementSink
public void graphCleared(String sourceId, long timeId)
graphCleared
in interface org.graphstream.stream.ElementSink
public void nodeAdded(String sourceId, long timeId, String nodeId)
nodeAdded
in interface org.graphstream.stream.ElementSink
public void nodeRemoved(String sourceId, long timeId, String nodeId)
nodeRemoved
in interface org.graphstream.stream.ElementSink
public void stepBegins(String sourceId, long timeId, double step)
stepBegins
in interface org.graphstream.stream.ElementSink
public static void main(String... args)
Copyright © 2015. All rights reserved.