// ** This class was generated with DemFGen (vers:10/20/2009) package gen; import java.io.FileInputStream; import edu.neu.ccs.demeterf.lib.*; /** Representation of Both */ public class Both{ protected final ChallengeLanguage cl; protected final ProblemInstance pl; /** Construct a(n) Both Instance */ public Both(ChallengeLanguage cl, ProblemInstance pl){ this.cl = cl; this.pl = pl; } /** Is the given object Equal to this Both? */ public boolean equals(Object o){ if(!(o instanceof Both))return false; if(o == this)return true; Both oo = (Both)o; return (((Object)cl).equals(oo.cl))&&(((Object)pl).equals(oo.pl)); } /** Parse an instance of Both from the given String */ public static Both parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_Both(); } /** Parse an instance of Both from the given Stream */ public static Both parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_Both(); } /** Parse an instance of Both from the given Reader */ public static Both parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_Both(); } /** Field Class for Both.cl */ public static class cl extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for Both.pl */ public static class pl 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); } }