A graph generator is an object that can send graph events to create a new graph from an internal description. Some generators will create a static predefined graph, others will be able to continuously evolve Indeed some generators define an end to the generation process, others may continue endlessly.
Each generator, in addition of being a source of events, provide only three methods:
begin(). For static generators this often generate a whole graph, for dynamic generators this only initialise a base graph.
nextEvents(). This method will, as its name suggests, generate more dynamic events making the graph evolve. You can call it (repeatedly) only between a call to
end(). This method returns a boolean that may indicate that no more events can be generated.
end(). This method must ALWAYS be called when finished with the generator.
|Modifier and Type||Method and Description|
Begin the graph generation.
End the graph generation by finalizing it.
Perform the next step in generating the graph.
nextEvents()method to add elements to the graph.
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses