Rename binary readers, and separate the button in two.

This commit is contained in:
Holt59
2018-02-28 22:24:04 +01:00
parent a4e7a6f708
commit 6cc57631ad
4 changed files with 79 additions and 56 deletions

View File

@@ -12,7 +12,7 @@ import org.insa.graph.Point;
import org.insa.graph.RoadInformation;
import org.insa.graph.RoadInformation.RoadType;
public class BinaryGraphReader extends BinaryReader implements GraphReader {
public class BinaryGraphReaderInsa2016 extends BinaryReader implements GraphReader {
// Map version and magic number targeted for this reader.
private static final int VERSION = 4;
@@ -70,7 +70,7 @@ public class BinaryGraphReader extends BinaryReader implements GraphReader {
*
* @param dis
*/
public BinaryGraphReader(DataInputStream dis) {
public BinaryGraphReaderInsa2016(DataInputStream dis) {
super(MAGIC_NUMBER, VERSION, dis);
}

View File

@@ -12,7 +12,7 @@ import org.insa.graph.Point;
import org.insa.graph.RoadInformation;
import org.insa.graph.RoadInformation.RoadType;
public class BinaryGraphReaderV2 extends BinaryReader implements GraphReader {
public class BinaryGraphReaderInsa2018 extends BinaryReader implements GraphReader {
// Map version and magic number targeted for this reader.
private static final int VERSION = 5;
@@ -70,7 +70,7 @@ public class BinaryGraphReaderV2 extends BinaryReader implements GraphReader {
*
* @param dis
*/
public BinaryGraphReaderV2(DataInputStream dis) {
public BinaryGraphReaderInsa2018(DataInputStream dis) {
super(MAGIC_NUMBER, VERSION, dis);
}