Start updating length (int -> float).

This commit is contained in:
Mikael Capelle
2018-03-09 14:12:21 +01:00
parent 85fb193808
commit 3e6bcb0665
7 changed files with 19 additions and 13 deletions

View File

@@ -14,7 +14,7 @@ public class GraphStatistics {
private final int maximumSpeed;
// Maximum length of any arc on this graph.
private final int maximumLength;
private final float maximumLength;
/**
* Create a new GraphStatistics instance with the given value.
@@ -23,7 +23,7 @@ public class GraphStatistics {
* be used to indicate that this graph has no maximum limitation.
* @param maximumLength Maximum length of any arc of the graph.
*/
public GraphStatistics(int maximumSpeed, int maximumLength) {
public GraphStatistics(int maximumSpeed, float maximumLength) {
this.maximumLength = maximumLength;
this.maximumSpeed = maximumSpeed;
}
@@ -39,7 +39,7 @@ public class GraphStatistics {
/**
* @return Maximum length of any arc in the graph.
*/
public int getMaximumLength() {
public float getMaximumLength() {
return this.maximumLength;
}