|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.graphstream.stream.SourceBase
org.graphstream.algorithm.generator.BaseGenerator
org.graphstream.algorithm.generator.PointsOfInterestGenerator
public class PointsOfInterestGenerator
Generate a social dynamic graph. Graph is composed of high-connected group of nodes, modeling organizations, and few connections between organizations. This is done by creating points of interest. Nodes can be interested by these points or loose them interest. When two nodes are interested by at least one common point, then there are connected. Some probabilities can be set defining the following events :
Nested Class Summary | |
---|---|
static class |
PointsOfInterestGenerator.Parameter
|
Nested classes/interfaces inherited from class org.graphstream.stream.SourceBase |
---|
org.graphstream.stream.SourceBase.ElementType |
Constructor Summary | |
---|---|
PointsOfInterestGenerator()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class org.graphstream.algorithm.generator.BaseGenerator |
---|
addEdgeAttribute, addEdgeLabels, addNodeAttribute, addNodeLabels, isUsingInternalGraph, removeEdgeAttribute, removeNodeAttribute, setDirectedEdges, setEdgeAttributesRange, setNodeAttributesRange, setRandomSeed, setUseInternalGraph |
Methods inherited from class org.graphstream.stream.SourceBase |
---|
addAttributeSink, addElementSink, addSink, attributeSinks, clearAttributeSinks, clearElementSinks, clearSinks, elementSinks, removeAttributeSink, removeElementSink, removeSink, sendAttributeChangedEvent, sendAttributeChangedEvent, sendEdgeAdded, sendEdgeAdded, sendEdgeRemoved, sendEdgeRemoved, sendGraphCleared, sendGraphCleared, sendNodeAdded, sendNodeAdded, sendNodeRemoved, sendNodeRemoved, sendStepBegins, sendStepBegins |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.graphstream.stream.Source |
---|
addAttributeSink, addElementSink, addSink, clearAttributeSinks, clearElementSinks, clearSinks, removeAttributeSink, removeElementSink, removeSink |
Constructor Detail |
---|
public PointsOfInterestGenerator()
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |