TPTP 4.2.0 Platform Project
Public API Specification

org.eclipse.hyades.uml2sd.util
Class SortAsyncForBackward

java.lang.Object
  extended byorg.eclipse.hyades.uml2sd.util.SortAsyncForBackward
All Implemented Interfaces:
java.util.Comparator

public class SortAsyncForBackward
extends java.lang.Object
implements java.util.Comparator

Aynchrnous message comparator Compare two asyncMessages only taking into account the event occurrence when their appear.
Used to order the AsyncMessage list insuring that prev node has both of his ends smaller than the current node


Constructor Summary
SortAsyncForBackward()
           
 
Method Summary
 int compare(java.lang.Object arg0, java.lang.Object arg1)
          Compares two asynchronous messages Returns 0 (equal) if one of the message is not asynchrnous
 
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

SortAsyncForBackward

public SortAsyncForBackward()
Method Detail

compare

public int compare(java.lang.Object arg0,
                   java.lang.Object arg1)
Compares two asynchronous messages Returns 0 (equal) if one of the message is not asynchrnous

Specified by:
compare in interface java.util.Comparator
Returns:
1 if arg0 is greater, 0 if equal, -1 otherwise

TPTP 4.2.0 Platform Project
Public API Specification