nl.tudelft.simulation.messaging.comparators
Class FiFo

java.lang.Object
  extended bynl.tudelft.simulation.messaging.comparators.FieldComparator
      extended bynl.tudelft.simulation.messaging.comparators.FiFo
All Implemented Interfaces:
java.util.Comparator, java.io.Serializable
Direct Known Subclasses:
LiFo

public class FiFo
extends FieldComparator

A FiFo sorting mechanism for messages.

Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl. The source code and binary code of this software is proprietary information of Delft University of Technology.

Version:
$$Revision: 1.3 $$ $$Date: 2005/04/08 11:29:12 $$
Author:
Peter Jacobs
See Also:
Serialized Form

Field Summary
static java.lang.String FIELDNAME
          the fieldName used to check order
 
Fields inherited from class nl.tudelft.simulation.messaging.comparators.FieldComparator
fieldName, negative, next
 
Constructor Summary
FiFo()
          constructs a new FiFo on the id-field of a message
FiFo(java.util.Comparator next)
          constructs a new FiFo
 
Methods inherited from class nl.tudelft.simulation.messaging.comparators.FieldComparator
compare, isNegative, setNegative
 
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
 

Field Detail

FIELDNAME

public static final java.lang.String FIELDNAME
the fieldName used to check order

See Also:
Constant Field Values
Constructor Detail

FiFo

public FiFo()
constructs a new FiFo on the id-field of a message


FiFo

public FiFo(java.util.Comparator next)
constructs a new FiFo

Parameters:
next - the next comparator to use


Copyright © 2004-2005 Delft University of Technology, the Netherlands. All Rights Reserved.