net.sf.cpsolver.coursett.constraint
Class FlexibleConstraint.PlacementTimeComparator
java.lang.Object
net.sf.cpsolver.coursett.constraint.FlexibleConstraint.PlacementTimeComparator
- All Implemented Interfaces:
- Comparator<Placement>
- Enclosing class:
- FlexibleConstraint
protected static class FlexibleConstraint.PlacementTimeComparator
- extends Object
- implements Comparator<Placement>
Placement comparator: earlier placement first, shorter placement first if both start at the same time.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlexibleConstraint.PlacementTimeComparator
protected FlexibleConstraint.PlacementTimeComparator()
compare
public int compare(Placement p1,
Placement p2)
- Specified by:
compare
in interface Comparator<Placement>
Copyright © 2014 UniTime LLC. All Rights Reserved.