net.kwfgrid.gwes
Class TransitionPriorityComparator
java.lang.Object
net.kwfgrid.gwes.TransitionPriorityComparator
- All Implemented Interfaces:
- Comparator
public class TransitionPriorityComparator
- extends Object
- implements Comparator
Compares two transitions by means of its priority.
- Version:
- $Id: TransitionPriorityComparator.java 1419 2010-11-01 14:12:17Z hoheisel $
- Author:
- Andreas Hoheisel
(www.andreas-hoheisel.de)
|
Method Summary |
int |
compare(Object o1,
Object o2)
Compares its two Transitions for order. |
static int |
getPriority(net.kwfgrid.gworkflowdl.structure.Transition transition)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransitionPriorityComparator
public TransitionPriorityComparator()
compare
public int compare(Object o1,
Object o2)
- Compares its two Transitions for order. Returns a negative integer,
zero, or a positive integer as the priority of the first transition is less than, equal
to, or greater than the second.
Note: this comparator imposes orderings that are inconsistent with equals.
- Specified by:
compare in interface Comparator
- Parameters:
o1 - the first object to be compared.o2 - the second object to be compared.
- Returns:
- a negative integer, zero, or a positive integer as the
first argument is less than, equal to, or greater than the
second.
- Throws:
ClassCastException - if the arguments' types prevent them from
being compared by this Comparator.
getPriority
public static int getPriority(net.kwfgrid.gworkflowdl.structure.Transition transition)
Copyright © 2005-2011 Fraunhofer FIRST. All Rights Reserved.