public class FileSourceTLP extends FileSourceParser
(tlp "2.0" ; file content )Some meta informations can be done :
(tlp "2.0" (author "author name") (date "...") (comments "...") ... )Node indexes are integer. They can be declared in a "nodes" tag :
(tlp "2.0" (nodes 1 2 3) (edge 1 1 2) (edge 2 1 3) (edge 3 2 3) )Then edge can be defined with an int index followed by the index of the source node and the target nodes. Clusters can be created with an index and a name:
(tlp "2.0" (nodes 1 2 3) (edge 1 1 2) (edge 2 1 3) (edge 3 2 3) (cluster 1 "cluster name" (nodes 1 3) (edges 2) ) )Cluster 0 is the root graph. Properties can be applied to cluster:
(tlp "2.0" (nodes 1 2 3) (edge 1 1 2) (edge 2 1 3) (edge 3 2 3) (property cluster_id type "name" (default "node_default" "edge_default") (node node_id "value") (edge edge_id "value") ) )Type of properties can be one of :
SourceBase.ElementType
factory, parser
attrSinks, eltsSinks, eventProcessing, eventQueue, sourceId, sourceTime
Constructor and Description |
---|
FileSourceTLP() |
Modifier and Type | Method and Description |
---|---|
ParserFactory |
getNewParserFactory()
Get a new parser factory.
|
begin, begin, begin, begin, createReaderForFile, end, nextEvents, nextStep, 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 FileSourceTLP()
public ParserFactory getNewParserFactory()
FileSourceParser
getNewParserFactory
in class FileSourceParser
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses