valid
This commit is contained in:
parent
98d0e9c3b8
commit
661162456a
2 changed files with 8 additions and 4 deletions
|
@ -201,8 +201,13 @@ public class Path {
|
|||
* @deprecated Need to be implemented.
|
||||
*/
|
||||
public boolean isValid() {
|
||||
// TODO:
|
||||
return false;
|
||||
for (int i=0; i<arcs.size();i++){
|
||||
if(arcs.get(i).getDestination() != arcs.get(i+1).getOrigin()){
|
||||
return false;
|
||||
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -230,8 +235,7 @@ public class Path {
|
|||
* kilometers-per-hour).
|
||||
*
|
||||
<<<<<<< HEAD
|
||||
*
|
||||
=======
|
||||
*
|
||||
*
|
||||
>>>>>>> 052958ee6eb4821ebbb9c903780d467d62617fd2
|
||||
*/
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue