// ** This class was generated with DemFGen (vers:09/12/2009) package gen; import java.io.FileInputStream; import edu.neu.ccs.demeterf.lib.*; /** Representation of Challenge */ public class Challenge{ protected final String name; protected final Price price; protected final Predicate predicate; protected final Option optraw; protected final Option optfinished; /** Construct a(n) Challenge Instance */ public Challenge(String name, Price price, Predicate predicate, Option optraw, Option optfinished){ this.name = name; this.price = price; this.predicate = predicate; this.optraw = optraw; this.optfinished = optfinished; } /** Is the given object Equal to this Challenge? */ public boolean equals(Object o){ if(!(o instanceof Challenge))return false; if(o == this)return true; Challenge oo = (Challenge)o; return (((Object)name).equals(oo.name))&&(((Object)price).equals(oo.price))&&(((Object)predicate).equals(oo.predicate))&&(((Object)optraw).equals(oo.optraw))&&(((Object)optfinished).equals(oo.optfinished)); } /** Parse an instance of Challenge from the given String */ public static Challenge parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_Challenge(); } /** Parse an instance of Challenge from the given Stream */ public static Challenge parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_Challenge(); } /** Parse an instance of Challenge from the given Reader */ public static Challenge parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_Challenge(); } /** Field Class for Challenge.name */ public static class name extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for Challenge.price */ public static class price extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for Challenge.predicate */ public static class predicate extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for Challenge.optraw */ public static class optraw extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for Challenge.optfinished */ public static class optfinished extends edu.neu.ccs.demeterf.control.Fields.any{} /** DGP method from Class ToStr */ public String toStr(){ return gen.ToStr.ToStrM(this); } /** DGP method from Class Print */ public String print(){ return gen.Print.PrintM(this); } /** DGP method from Class Display */ public String display(){ return gen.Display.DisplayM(this); } }