/** * Setting up the end position for quickest path algorithm** */ public String PathFinish(Coordinates c) { finishPosition.setX(c.getX()); finishPosition.setY(c.getY()); return "Hurtigste rute til position " + finishPosition.getX() + "," + finishPosition.getY() + " beregnes"; }
/** * Setting up the start position for quickest path algorithm ** */ public String PathStart(Coordinates c) { startPosition.setX(c.getX()); startPosition.setY(c.getY()); return "" + startPosition.getX() + "," + startPosition.getY(); }