public class FileSourceDGS extends FileSourceParser
The DGS file format is especially designed for storing dynamic graph definitions into a file. More information about the DGS file format will be found on the GraphStream web site: http://graphstream-project.org/
The usual file name extension used for this format is ".dgs".FileSource
SourceBase.ElementType
factory, parser
attrSinks, eltsSinks, eventProcessing, eventQueue, sourceId, sourceTime
Constructor and Description |
---|
FileSourceDGS() |
Modifier and Type | Method and Description |
---|---|
protected Reader |
createReaderForFile(String filename) |
ParserFactory |
getNewParserFactory()
Get a new parser factory.
|
boolean |
nextStep()
Since there is no step in DOT, this does the same action than
FileSourceParser.nextEvents() . |
begin, begin, begin, begin, end, nextEvents, readAll, readAll, readAll, readAll
addAttributeSink, addElementSink, addSink, attributeSinks, clearAttributeSinks, clearElementSinks, clearSinks, elementSinks, manageEvents, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAttributeSink, addElementSink, addSink, clearAttributeSinks, clearElementSinks, clearSinks, removeAttributeSink, removeElementSink, removeSink
public FileSourceDGS()
public ParserFactory getNewParserFactory()
FileSourceParser
getNewParserFactory
in class FileSourceParser
public boolean nextStep() throws IOException
FileSourceParser
FileSourceParser.nextEvents()
.nextStep
in interface FileSource
nextStep
in class FileSourceParser
IOException
- If an I/O error occurs while reading.protected Reader createReaderForFile(String filename) throws IOException
createReaderForFile
in class FileSourceParser
IOException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses