public class JSONSender extends Object implements org.graphstream.stream.Sink
| Constructor and Description |
|---|
JSONSender(String host,
int port,
String workspace)
A sink which can send event to an Gephi server in JSON format
|
JSONSender(String host,
int port,
String workspace,
boolean debug)
A sink which can send event to an Gephi server in JSON format
|
| Modifier and Type | Method and Description |
|---|---|
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) |
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 |
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 |
setDebug(boolean debug)
set debug mode
|
void |
stepBegins(String sourceId,
long timeId,
double step) |
public JSONSender(String host, int port, String workspace)
host - , the host of the Gephi serverport - , the port of the Gephi serverworkspace - , the workspace name of the Gephi serverpublic JSONSender(String host, int port, String workspace, boolean debug)
host - , the host of the Gephi serverport - , the port of the Gephi serverworkspace - , the workspace name of the Gephi serverdebug - , the program modepublic void setDebug(boolean debug)
debug - public void edgeAttributeAdded(String sourceId, long timeId, String edgeId, String attribute, Object value)
edgeAttributeAdded in interface org.graphstream.stream.AttributeSinkpublic void edgeAttributeChanged(String sourceId, long timeId, String edgeId, String attribute, Object oldValue, Object newValue)
edgeAttributeChanged in interface org.graphstream.stream.AttributeSinkpublic void edgeAttributeRemoved(String sourceId, long timeId, String edgeId, String attribute)
edgeAttributeRemoved in interface org.graphstream.stream.AttributeSinkpublic void graphAttributeAdded(String sourceId, long timeId, String attribute, Object value)
graphAttributeAdded in interface org.graphstream.stream.AttributeSinkpublic void graphAttributeChanged(String sourceId, long timeId, String attribute, Object oldValue, Object newValue)
graphAttributeChanged in interface org.graphstream.stream.AttributeSinkpublic void graphAttributeRemoved(String sourceId, long timeId, String attribute)
graphAttributeRemoved in interface org.graphstream.stream.AttributeSinkpublic void nodeAttributeAdded(String sourceId, long timeId, String nodeId, String attribute, Object value)
nodeAttributeAdded in interface org.graphstream.stream.AttributeSinkpublic void nodeAttributeChanged(String sourceId, long timeId, String nodeId, String attribute, Object oldValue, Object newValue)
nodeAttributeChanged in interface org.graphstream.stream.AttributeSinkpublic void nodeAttributeRemoved(String sourceId, long timeId, String nodeId, String attribute)
nodeAttributeRemoved in interface org.graphstream.stream.AttributeSinkpublic void edgeAdded(String sourceId, long timeId, String edgeId, String fromNodeId, String toNodeId, boolean directed)
edgeAdded in interface org.graphstream.stream.ElementSinkpublic void edgeRemoved(String sourceId, long timeId, String edgeId)
edgeRemoved in interface org.graphstream.stream.ElementSinkpublic void graphCleared(String sourceId, long timeId)
graphCleared in interface org.graphstream.stream.ElementSinkpublic void nodeAdded(String sourceId, long timeId, String nodeId)
nodeAdded in interface org.graphstream.stream.ElementSinkpublic void nodeRemoved(String sourceId, long timeId, String nodeId)
nodeRemoved in interface org.graphstream.stream.ElementSinkpublic void stepBegins(String sourceId, long timeId, double step)
stepBegins in interface org.graphstream.stream.ElementSinkCopyright © 2015. All rights reserved.