org.graphstream.stream
Interface Replayable
- All Known Implementing Classes:
- AbstractGraph, AdjacencyListGraph, DefaultGraph, MultiGraph, SingleGraph
public interface Replayable
Defines sources that can be replayed. This is usefull when you are connecting
a sink to a source but you need to get informations about the current state
of the dynamic graph.
Replayable source = ... ;
Replayable.Controller replay = source.getReplayController();
...
// source is building a graph
...
Graph g = ... ;
//
// Replay the source to get the current state of the graph
//
replay.addSink(g);
replay.replay();
getReplayController
Replayable.Controller getReplayController()
- Get a controller to replay the graph.
- Returns:
- a new replay controller
Copyright © 2013. All Rights Reserved.