public class PointsOfInterestGenerator extends BaseGenerator
Modifier and Type | Class and Description |
---|---|
static class |
PointsOfInterestGenerator.Parameter |
Constructor and Description |
---|
PointsOfInterestGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
begin()
Add initial count of points of interest, and initial count of people.
|
void |
end()
End the graph generation by finalizing it.
|
static void |
main(String... args) |
boolean |
nextEvents()
Step of the generator.
|
void |
setParameter(PointsOfInterestGenerator.Parameter p,
Object value) |
addEdgeAttribute, addEdgeLabels, addNodeAttribute, addNodeLabels, isUsingInternalGraph, removeEdgeAttribute, removeNodeAttribute, setDirectedEdges, setEdgeAttributesRange, setNodeAttributesRange, setRandomSeed, setUseInternalGraph
addAttributeSink, addElementSink, addSink, attributeSinks, clearAttributeSinks, clearElementSinks, clearSinks, elementSinks, removeAttributeSink, removeElementSink, removeSink, sendAttributeChangedEvent, sendAttributeChangedEvent, sendEdgeAdded, sendEdgeAdded, sendEdgeAttributeAdded, sendEdgeAttributeAdded, sendEdgeAttributeChanged, sendEdgeAttributeChanged, sendEdgeAttributeRemoved, sendEdgeAttributeRemoved, sendEdgeRemoved, sendEdgeRemoved, sendGraphAttributeAdded, sendGraphAttributeAdded, sendGraphAttributeChanged, sendGraphAttributeChanged, sendGraphAttributeRemoved, sendGraphAttributeRemoved, sendGraphCleared, sendGraphCleared, sendNodeAdded, sendNodeAdded, sendNodeAttributeAdded, sendNodeAttributeAdded, sendNodeAttributeChanged, sendNodeAttributeChanged, sendNodeAttributeRemoved, sendNodeAttributeRemoved, sendNodeRemoved, sendNodeRemoved, sendStepBegins, sendStepBegins
public void setParameter(PointsOfInterestGenerator.Parameter p, Object value)
public void begin()
Generator.begin()
public boolean nextEvents()
delPeopleProbability
. Try to add a node according to the
addPeopleProbability
. Try to remove a point of interest
according to the delPointOfInterestProbability
. Try to add a
point of interest according to the addPointOfInterestProbability
. Then, step of addicts.PointsOfInterestGenerator.Addict.step()
,
Generator.nextEvents()
public void end()
BaseGenerator
Generator.nextEvents()
method returned false (or even if you stop before), this method must be
called to finish the graph.
In addition, BaseGenerator adds a "clear" operations that removes all the
kept edges and nodes identifiers and the associated data.end
in interface Generator
end
in class BaseGenerator
public static void main(String... args)
Copyright © 2015. All rights reserved.