Package org.insa.graphs.model.io
Interface GraphReaderObserver
-
- All Known Implementing Classes:
GraphReaderProgressBar
public interface GraphReaderObserverBase 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 voidnotifyEndReading()Notify that the graph has been fully read.voidnotifyNewArcRead(Arc arc)Notify that a new arc has been read.voidnotifyNewDescriptorRead(RoadInformation desc)Notify that a new descriptor has been read.voidnotifyNewNodeRead(Node node)Notify that a new nodes has been read.voidnotifyStartReading(java.lang.String mapId)Notify observer about information on the graph, this method is always the first calledvoidnotifyStartReadingArcs(int nArcs)Notify that the reader is starting to read arcs.voidnotifyStartReadingDescriptors(int nDesc)Notify that the reader is starting to read descriptor/road informations.voidnotifyStartReadingNodes(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.
-
-