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();
 


Nested Class Summary
static interface Replayable.Controller
          A controller used to replay a source.
 
Method Summary
 Replayable.Controller getReplayController()
          Get a controller to replay the graph.
 

Method Detail

getReplayController

Replayable.Controller getReplayController()
Get a controller to replay the graph.

Returns:
a new replay controller


Copyright © 2013. All Rights Reserved.