package causality; import exercise.Results; /** * This class encodes the result of the students submission. As * of right now, there are only three possible outcomes. * * @version 0.9 June 20, 1999 * @author David Danks */ public class CLResults implements Results { // Constants that define the possible outcomes public static final int CORRECT_DIGRAPH = 0; public static final int INCORRECT_DIGRAPH = 1; public static final int EQUIVALENT_DIGRAPH = 2; private int result; /** * @param outcome The outcome, using one of the constants */ public CLResults(int outcome) { result = outcome; } /** * @return The result of the submission */ public int getResult() { return result; } }