|
@@ -26,11 +26,11 @@ public class MinEnergyComparator implements Comparator<HolonObject> {
|
|
float minEnergy1 = o1.getMinEnergy(timeStep);
|
|
float minEnergy1 = o1.getMinEnergy(timeStep);
|
|
float minEnergy2 = o2.getMinEnergy(timeStep);
|
|
float minEnergy2 = o2.getMinEnergy(timeStep);
|
|
if(minEnergy1<minEnergy2)
|
|
if(minEnergy1<minEnergy2)
|
|
- return -1;
|
|
|
|
|
|
+ return 1;
|
|
else if (minEnergy1 == minEnergy2)
|
|
else if (minEnergy1 == minEnergy2)
|
|
return 0;
|
|
return 0;
|
|
else
|
|
else
|
|
- return 1;
|
|
|
|
|
|
+ return -1;
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|