com.gridsystems.nextgrid.api.pom
Class ProcessPriorityComparator

java.lang.Object
  extended by com.gridsystems.nextgrid.api.pom.ProcessPriorityComparator
All Implemented Interfaces:
java.util.Comparator<nextgrid.api.pom.Process>

public class ProcessPriorityComparator
extends java.lang.Object
implements java.util.Comparator<nextgrid.api.pom.Process>

Process comparator. It compares two processes by their priority field value.

Author:
Rodrigo Ruiz

Constructor Summary
ProcessPriorityComparator()
           
 
Method Summary
 int compare(nextgrid.api.pom.Process p0, nextgrid.api.pom.Process p1)
          
 
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

ProcessPriorityComparator

public ProcessPriorityComparator()
Method Detail

compare

public int compare(nextgrid.api.pom.Process p0,
                   nextgrid.api.pom.Process p1)

Specified by:
compare in interface java.util.Comparator<nextgrid.api.pom.Process>


Copyright © 2006-2008 Grid Systems, S.A.. All Rights Reserved.