Package ptolemy.domains.tdl.kernel
Class TDLAction.TDLActionComparator
- java.lang.Object
-
- ptolemy.domains.tdl.kernel.TDLAction.TDLActionComparator
-
- All Implemented Interfaces:
java.util.Comparator
- Enclosing class:
- TDLAction
public static class TDLAction.TDLActionComparator extends java.lang.Object implements java.util.Comparator
A class that compares two TDL actions.
-
-
Constructor Summary
Constructors Constructor Description TDLActionComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(java.lang.Object event1, java.lang.Object event2)
Compare two TDLEvents.
-
-
-
Method Detail
-
compare
public int compare(java.lang.Object event1, java.lang.Object event2)
Compare two TDLEvents. Two TDL Events are the same if all attributes are the same: timestamp, actionType and actor. For comparison of an actor, the actor name which has to be unique in the model is used.- Specified by:
compare
in interfacejava.util.Comparator
- Parameters:
event1
- First event.event2
- Second event.- Returns:
- The result of the comparison of the two TDL events.
-
-