001 /*
002 * $Id: StrategyEnumeration.java,v 1.3 2003/12/29 22:46:42 kredel Exp $
003 */
004
005 //package edu.jas;
006 package thread;
007
008 /**
009 * StrategyEnumeration
010 * This class names possible / implemented strategies.
011 * @author Heinz Kredel.
012 */
013
014 public final class StrategyEnumeration {
015
016 public static final StrategyEnumeration FIFO = new StrategyEnumeration();
017
018 public static final StrategyEnumeration LIFO = new StrategyEnumeration();
019
020 private StrategyEnumeration() { }
021
022 public String toString() {
023 if (this == FIFO) {
024 return "FIFO strategy";
025 } else {
026 return "LIFO strategy";
027 }
028 }
029
030 }