public class TimedBasedActionComparator extends Object implements Comparator<Action>
It is possible to indicate the comparator to differentiate two actions that are simultaneous but not equals.
This is meaningful to sort set of actions as actions that are equals
wrt. to the comparator will be removed from the set while being different wrt. their
|Constructor and Description|
New comparator that does not differentiate simultaneous actions.
|Modifier and Type||Method and Description|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public TimedBasedActionComparator(boolean onStart, boolean diffSamePeriods)
onStart- to compare the actions using their start moment. Otherwise, the comparison is made wrt. the ending moment
trueto differentiate simultaneous actions.
Copyright © 2016 University of Nice-Sophia Antipolis. All Rights Reserved.