ptolemy.actor.util
Class CausalityInterfaceForComposites.ActorComparator

java.lang.Object
  extended by ptolemy.actor.util.CausalityInterfaceForComposites.ActorComparator
All Implemented Interfaces:
java.util.Comparator<Actor>
Enclosing class:
CausalityInterfaceForComposites

private class CausalityInterfaceForComposites.ActorComparator
extends java.lang.Object
implements java.util.Comparator<Actor>

Comparator used to sort the actors.


Constructor Summary
private CausalityInterfaceForComposites.ActorComparator()
           
 
Method Summary
 int compare(Actor actor1, Actor actor2)
          Compare the depths of two actors.
 
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

CausalityInterfaceForComposites.ActorComparator

private CausalityInterfaceForComposites.ActorComparator()
Method Detail

compare

public int compare(Actor actor1,
                   Actor actor2)
Compare the depths of two actors. NOTE: This method assumes and does not check that the depth cache is up to date and contains both specified actors.

Specified by:
compare in interface java.util.Comparator<Actor>