diff --git a/src/edu/kit/informatik/model/RailwayNetwork.java b/src/edu/kit/informatik/model/RailwayNetwork.java index ea71096..8d919e2 100644 --- a/src/edu/kit/informatik/model/RailwayNetwork.java +++ b/src/edu/kit/informatik/model/RailwayNetwork.java @@ -2,7 +2,6 @@ package edu.kit.informatik.model; import edu.kit.informatik.ui.InvalidInputException; -import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; diff --git a/src/edu/kit/informatik/model/Track.java b/src/edu/kit/informatik/model/Track.java index 550d7f8..28a6733 100644 --- a/src/edu/kit/informatik/model/Track.java +++ b/src/edu/kit/informatik/model/Track.java @@ -120,10 +120,20 @@ public final class Track extends Rail { || connectsTo(position) && getDirectionFrom(position).equals(direction); } + /** + * Get the start position of this track. + * + * @return start position of this track + */ public Vector2D getStart() { return new Vector2D(start); } + /** + * Get the end position of this track. + * + * @return end position of this track + */ public Vector2D getEnd() { return new Vector2D(end); }