public class MaxSimultaneousNodeCount extends SinkAdapter
an A an B an C dn B an D dn C an E an F dn Ethe maximal count of nodes appearing simultaneously in the graph is 4.
Modifier and Type | Field and Description |
---|---|
protected int |
count
Current count of nodes in the graph.
|
protected int |
max
Max count of nodes.
|
Constructor and Description |
---|
MaxSimultaneousNodeCount() |
Modifier and Type | Method and Description |
---|---|
int |
getMaxSimultaneousNodeCount()
Get the max value.
|
void |
graphCleared(String sourceId,
long timeId)
The whole graph was cleared.
|
void |
nodeAdded(String sourceId,
long timeId,
String nodeId)
A node was inserted in the given graph.
|
void |
nodeRemoved(String sourceId,
long timeId,
String nodeId)
A node was removed from the graph.
|
void |
reset()
Reset the max value.
|
edgeAdded, edgeAttributeAdded, edgeAttributeChanged, edgeAttributeRemoved, edgeRemoved, graphAttributeAdded, graphAttributeChanged, graphAttributeRemoved, nodeAttributeAdded, nodeAttributeChanged, nodeAttributeRemoved, stepBegins
protected int count
protected int max
public MaxSimultaneousNodeCount()
public void reset()
public int getMaxSimultaneousNodeCount()
public void nodeAdded(String sourceId, long timeId, String nodeId)
ElementSink
nodeAdded
in interface ElementSink
nodeAdded
in class SinkAdapter
sourceId
- Identifier of the graph where the node was added.nodeId
- Identifier of the added node.public void nodeRemoved(String sourceId, long timeId, String nodeId)
ElementSink
nodeRemoved
in interface ElementSink
nodeRemoved
in class SinkAdapter
sourceId
- Identifier of the graph where the node will be removed.nodeId
- Identifier of the removed node.public void graphCleared(String sourceId, long timeId)
ElementSink
graphCleared
in interface ElementSink
graphCleared
in class SinkAdapter
sourceId
- The graph cleared.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses