// ** This class was generated with DemFGen (vers:06/04/2009) package gen; import edu.neu.ccs.demeterf.demfgen.lib.*; import edu.neu.ccs.demeterf.demfgen.lib.*; /** Representation of ChallengeInstance */ public class ChallengeInstance{ public List cs; public Option secret; /** Construct a(n) ChallengeInstance Instance */ public ChallengeInstance(List cs, Option secret){ this.cs = cs; this.secret = secret; } /** Is the given object Equal to this ChallengeInstance? */ public boolean equals(Object o){ if(!(o instanceof ChallengeInstance))return false; if(o == this)return true; ChallengeInstance oo = (ChallengeInstance)o; return (((Object)cs).equals(oo.cs))&&(((Object)secret).equals(oo.secret)); } /** Parse an instance of ChallengeInstance from the given String */ public static ChallengeInstance parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_ChallengeInstance(); } /** Parse an instance of ChallengeInstance from the given Stream */ public static ChallengeInstance parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_ChallengeInstance(); } /** Parse an instance of ChallengeInstance from the given Reader */ public static ChallengeInstance parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_ChallengeInstance(); } /** Field Class for ChallengeInstance.cs */ public static class cs extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for ChallengeInstance.secret */ public static class secret extends edu.neu.ccs.demeterf.control.Fields.any{} /** DGP method from Class Display */ public String display(){ return gen.Display.DisplayM(this); } /** DGP method from Class PrintHeap */ public String print(){ return gen.PrintHeap.PrintHeapM(this); } /** DGP method from Class PrintHeapToString */ public String toString(){ return gen.PrintHeapToString.PrintHeapToStringM(this); } }