net.sf.cpsolver.coursett.constraint
Class FlexibleConstraint.PlacementTimeComparator

java.lang.Object
  extended by 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.


Constructor Summary
protected FlexibleConstraint.PlacementTimeComparator()
           
 
Method Summary
 int compare(Placement p1, Placement p2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

FlexibleConstraint.PlacementTimeComparator

protected FlexibleConstraint.PlacementTimeComparator()
Method Detail

compare

public int compare(Placement p1,
                   Placement p2)
Specified by:
compare in interface Comparator<Placement>


Copyright © 2014 UniTime LLC. All Rights Reserved.