public class AlgorithmComputationTrigger
extends org.graphstream.stream.SinkAdapter
Modifier and Type | Class and Description |
---|---|
static class |
AlgorithmComputationTrigger.Mode
Defines when the computation is triggered.
|
Constructor and Description |
---|
AlgorithmComputationTrigger(AlgorithmComputationTrigger.Mode mode,
Algorithm algo) |
Modifier and Type | Method and Description |
---|---|
AlgorithmComputationTrigger.Mode |
getMode()
Get the trigger mode.
|
void |
setMode(AlgorithmComputationTrigger.Mode mode)
Set the trigger mode.
|
void |
stepBegins(java.lang.String sourceId,
long timeId,
double step) |
edgeAdded, edgeAttributeAdded, edgeAttributeChanged, edgeAttributeRemoved, edgeRemoved, graphAttributeAdded, graphAttributeChanged, graphAttributeRemoved, graphCleared, nodeAdded, nodeAttributeAdded, nodeAttributeChanged, nodeAttributeRemoved, nodeRemoved
public AlgorithmComputationTrigger(AlgorithmComputationTrigger.Mode mode, Algorithm algo)
public void setMode(AlgorithmComputationTrigger.Mode mode)
mode
- the trigger modepublic AlgorithmComputationTrigger.Mode getMode()
public void stepBegins(java.lang.String sourceId, long timeId, double step)
stepBegins
in interface org.graphstream.stream.ElementSink
stepBegins
in class org.graphstream.stream.SinkAdapter