public Path getSubPath(int length) { Path temp = new Path(); for (int i = 0; i < length; i++) { temp.add(this.path.get(i)); } return temp; }