Package ptolemy.actor.lib.gem5
Class Gem5Wrapper.SortByCommandTime
- java.lang.Object
-
- ptolemy.actor.lib.gem5.Gem5Wrapper.SortByCommandTime
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.Comparator<RecordToken>
- Enclosing class:
- Gem5Wrapper
public static class Gem5Wrapper.SortByCommandTime extends java.lang.Object implements java.util.Comparator<RecordToken>, java.io.Serializable
Sort by the difference between the command times.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SortByCommandTime()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(RecordToken t1, RecordToken t2)
Return the difference between time 1 and time2.
-
-
-
Method Detail
-
compare
public int compare(RecordToken t1, RecordToken t2)
Return the difference between time 1 and time2.- Specified by:
compare
in interfacejava.util.Comparator<RecordToken>
- Parameters:
t1
- The record token containing the first time.t2
- The record token containing the first time.- Returns:
- The difference between the two times.
-
-