| Conditions | 5 |
| Total Lines | 6 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | package it.cnr.istc.pst.platinum.ai.deliberative.strategy; |
||
| 45 | @Override |
||
| 46 | public int compare(SearchSpaceNode o1, SearchSpaceNode o2) |
||
| 47 | { |
||
| 48 | // compare heuristics and makespan of nodes and use depth as last selection criterion |
||
| 49 | return o1.getPlanHeuristicCost()[0] < o2.getPlanHeuristicCost()[0] ? -1 : o1.getPlanHeuristicCost()[0] > o2.getPlanHeuristicCost()[0] ? 1 : |
||
| 50 | o1.getDepth() > o2.getDepth() ? -1 : o1.getDepth() < o2.getDepth() ? 1 : 0; |
||
| 51 | |||
| 54 |