Package org.insa.graphs.model.io
Interface GraphReaderObserver
-
- All Known Implementing Classes:
GraphReaderProgressBar
public interface GraphReaderObserver
Base interface that should be implemented by classes that want to observe the reading of a graph by aGraphReader
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
notifyEndReading()
Notify that the graph has been fully read.void
notifyNewArcRead(Arc arc)
Notify that a new arc has been read.void
notifyNewDescriptorRead(RoadInformation desc)
Notify that a new descriptor has been read.void
notifyNewNodeRead(Node node)
Notify that a new nodes has been read.void
notifyStartReading(java.lang.String mapId)
Notify observer about information on the graph, this method is always the first calledvoid
notifyStartReadingArcs(int nArcs)
Notify that the reader is starting to read arcs.void
notifyStartReadingDescriptors(int nDesc)
Notify that the reader is starting to read descriptor/road informations.void
notifyStartReadingNodes(int nNodes)
Notify that the reader is starting to read node.
-
-
-
Method Detail
-
notifyStartReading
void notifyStartReading(java.lang.String mapId)
Notify observer about information on the graph, this method is always the first called- Parameters:
mapId
- ID of the graph.
-
notifyEndReading
void notifyEndReading()
Notify that the graph has been fully read.
-
notifyStartReadingNodes
void notifyStartReadingNodes(int nNodes)
Notify that the reader is starting to read node.- Parameters:
nNodes
- Number of nodes to read.
-
notifyNewNodeRead
void notifyNewNodeRead(Node node)
Notify that a new nodes has been read.- Parameters:
node
- read.
-
notifyStartReadingDescriptors
void notifyStartReadingDescriptors(int nDesc)
Notify that the reader is starting to read descriptor/road informations.- Parameters:
nDesc
- Number of descriptors to read.
-
notifyNewDescriptorRead
void notifyNewDescriptorRead(RoadInformation desc)
Notify that a new descriptor has been read.- Parameters:
desc
- Descriptor read.
-
notifyStartReadingArcs
void notifyStartReadingArcs(int nArcs)
Notify that the reader is starting to read arcs.- Parameters:
nArcs
- Number of arcs to read (!= number of arcs in the graph).
-
notifyNewArcRead
void notifyNewArcRead(Arc arc)
Notify that a new arc has been read.- Parameters:
arc
- Arc read.
-
-