TPTP 4.6.0 Platform Project
Public API Specification

org.eclipse.hyades.uml2sd.util
Class SortAsyncMessageComparator

java.lang.Object
  extended by org.eclipse.hyades.uml2sd.util.SortAsyncMessageComparator
All Implemented Interfaces:
java.util.Comparator

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

Asynchronous message comparator Compare two AsyncMessages only taking into account the event occurrence when their appear.
Used to order the AsyncMessage list insuring that next node has one of his ends greater than the current node


Constructor Summary
SortAsyncMessageComparator()
           
 
Method Summary
 int compare(java.lang.Object arg0, java.lang.Object arg1)
          Compares two synchronous syncMessages Returns 0 (equal) if one of the message is not synchrnous
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

SortAsyncMessageComparator

public SortAsyncMessageComparator()
Method Detail

compare

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

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

TPTP 4.6.0 Platform Project
Public API Specification