@Override
	public int compareTo(Hypothesis arg0) {
		if (this.getOverallConsistency() > arg0.getOverallConsistency()) return -1;
		if (this.getOverallConsistency() < arg0.getOverallConsistency()) return 1;
		return 0;
	}
@ Override public int compareTo ( Hypothesis arg0 ) { if ( this . getOverallConsistency ( ) > arg0 . getOverallConsistency ( ) ) return - 1 ; if ( this . getOverallConsistency ( ) < arg0 . getOverallConsistency ( ) ) return 1 ; return 0 ; }
/*
public Interval getMaxInterval(HashMap<String,SimpleTimeline> tls) {
Vector<Long> startTimes = new Vector<Long>();
Vector<Long> endTimes = new Vector<Long>();
for (Constraint con : this.constraintNetwork.getConstraints()) {
if (con instanceof FuzzyAllenIntervalConstraint) {
FuzzyAllenIntervalConstraint fc = (FuzzyAllenIntervalConstraint)con;
FuzzyActivity act = (FuzzyActivity)fc.getTo();
SimpleTimeline tl = tls.get(act.getComponent());
long start = tl.getStart(act);
long end = tl.getEnd(act);
if (fc.containsType(FuzzyAllenIntervalConstraint.Type.After) ||
fc.containsType(FuzzyAllenIntervalConstraint.Type.MetBy)) {
startTimes.add(end);
}
else if (fc.containsType(FuzzyAllenIntervalConstraint.Type.OverlappedBy) ||
fc.containsType(FuzzyAllenIntervalConstraint.Type.During) ||
fc.containsType(FuzzyAllenIntervalConstraint.Type.Equals) ||
fc.containsType(FuzzyAllenIntervalConstraint.Type.FinishedBy) ||
fc.containsType(FuzzyAllenIntervalConstraint.Type.Starts) ||
fc.containsType(FuzzyAllenIntervalConstraint.Type.StartedBy) ) {
startTimes.add(start);
}
if (fc.containsType(FuzzyAllenIntervalConstraint.Type.Meets) ||
fc.containsType(FuzzyAllenIntervalConstraint.Type.Before)) {
endTimes.add(start);
}
else if (fc.containsType(FuzzyAllenIntervalConstraint.Type.Overlaps) ||
fc.containsType(FuzzyAllenIntervalConstraint.Type.During) ||
fc.containsType(FuzzyAllenIntervalConstraint.Type.Equals) ||
fc.containsType(FuzzyAllenIntervalConstraint.Type.FinishedBy) ||
fc.containsType(FuzzyAllenIntervalConstraint.Type.Finishes) ||
fc.containsType(FuzzyAllenIntervalConstraint.Type.StartedBy)) {
endTimes.add(end);
}
}
}

long minStart, maxEnd;

try { minStart = Collections.max(startTimes); }
catch (NoSuchElementException e) { minStart = 0; }

try { maxEnd = Collections.min(endTimes); }
catch (NoSuchElementException e) { maxEnd = APSPSolver.INF; }

return new Interval(null, minStart, maxEnd);

}