View Javadoc

1   /*
2    * @(#) FiFo.java Feb 18, 2004
3    * 
4    * Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
5    * Delft, the Netherlands. All rights reserved.
6    * 
7    * See for project information <a href="http://www.simulation.tudelft.nl/">
8    * www.simulation.tudelft.nl </a>.
9    * 
10   * The source code and binary code of this software is proprietary information
11   * of Delft University of Technology.
12   */
13  
14  package nl.tudelft.simulation.messaging.comparators;
15  
16  import java.util.Comparator;
17  
18  /***
19   * A LiFo sorting mechanism for messages. <br>
20   * Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
21   * Delft, the Netherlands. All rights reserved.
22   * 
23   * See for project information <a href="http://www.simulation.tudelft.nl/">
24   * www.simulation.tudelft.nl </a>.
25   * 
26   * The source code and binary code of this software is proprietary information
27   * of Delft University of Technology.
28   * 
29   * @author <a href="http://www.simulation.tudelft.nl/people/jacobs.html">Peter
30   *         Jacobs </a>
31   * @version $$Revision: 1.3 $$ $$Date: 2005/04/08 11:29:12 $$
32   */
33  public class LiFo extends FiFo
34  {
35  	/*** the serial version uid */
36  	private static final long serialVersionUID = 12L;
37  
38  	/***
39  	 * constructs a new LiFo on the id-field of a message
40  	 */
41  	public LiFo()
42  	{
43  		super();
44  		super.negative = true;
45  	}
46  
47  	/***
48  	 * constructs a new LiFo
49  	 * 
50  	 * @param next the next comparator to use
51  	 */
52  	public LiFo(final Comparator next)
53  	{
54  		super(next);
55  		super.negative = true;
56  	}
57  }