Class VerboseSink

java.lang.Object
org.graphstream.util.VerboseSink
All Implemented Interfaces:
AttributeSink, ElementSink, Sink

public class VerboseSink
extends Object
implements Sink
A sink that can be used to display event in a PrintStream like System.out. Format of messages can be customized, inserting keywords quoted with '%' in the format. '%sourceId%' and '%timeId%' keywords are defined for each event. Following defines keywords available for each event types:
ADD_NODE
  • %nodeId%
ADD_NODE_ATTRIBUTE
  • %nodeId%
  • %attributeId%
  • %value%
SET_NODE_ATTRIBUTE
  • %nodeId%
  • %attributeId%
  • %value%
DEL_NODE_ATTRIBUTE
  • %nodeId%
  • %attributeId%
DEL_NODE
  • %nodeId%
ADD_EDGE
  • %edgeId%
  • %source%
  • %target%
  • %directed%
ADD_EDGE_ATTRIBUTE
  • %edgeId%
  • %attributeId%
  • %value%
SET_EDGE_ATTRIBUTE
  • %edgeId%
  • %attributeId%
  • %value%
DEL_EDGE_ATTRIBUTE
  • %edgeId%
  • %attributeId%
DEL_EDGE
  • %edgeId%
ADD_GRAPH_ATTRIBUTE
  • %attributeId%
  • %value%
SET_GRAPH_ATTRIBUTE
  • %attributeId%
  • %value%
DEL_GRAPH_ATTRIBUTE
  • %attributeId%
CLEAR
STEP_BEGINS
  • %step%