// ** This file was generated with DemFGen (vers:12/15/2010) package gen; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.*; import java.lang.Integer; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.*; import java.lang.Integer; /** Representation of Test2 */ public class Test2{ protected final Instance i; protected final Solution s; protected final Domain d; protected final Claim c; /** Construct a(n) Test2 Instance */ public Test2(Instance i, Solution s, Domain d, Claim c){ this.i = i; this.s = s; this.d = d; this.c = c; } /** Is the given object Equal to this Test2? */ public boolean equals(Object o){ if(!(o instanceof Test2))return false; if(o == this)return true; Test2 oo = (Test2)o; return (((Object)i).equals(oo.i))&&(((Object)s).equals(oo.s))&&(((Object)d).equals(oo.d))&&(((Object)c).equals(oo.c)); } /** Parse an instance of Test2 from the given String */ public static Test2 parse(String inpt) throws gen.ParseException{ return new gen.TheParser(new java.io.StringReader(inpt)).parse_Test2(); } /** Parse an instance of Test2 from the given Stream */ public static Test2 parse(java.io.InputStream inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_Test2(); } /** Parse an instance of Test2 from the given Reader */ public static Test2 parse(java.io.Reader inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_Test2(); } /** Field Class for Test2.i */ public static class i extends edu.neu.ccs.demeterf.Fields.any{} /** Field Class for Test2.s */ public static class s extends edu.neu.ccs.demeterf.Fields.any{} /** Field Class for Test2.d */ public static class d extends edu.neu.ccs.demeterf.Fields.any{} /** Field Class for Test2.c */ public static class c extends edu.neu.ccs.demeterf.Fields.any{} /** DGP method from Class Display */ public String display(){ return gen.Display.DisplayM(this); } /** DGP method from Class Print */ public String print(){ return gen.Print.PrintM(this); } /** DGP method from Class ToStr */ public String toStr(){ return gen.ToStr.ToStrM(this); } /** Updater for field Test2.i */ public Test2 updateI(Instance _i){ return new Test2(_i, s, d, c); } /** Updater for field Test2.s */ public Test2 updateS(Solution _s){ return new Test2(i, _s, d, c); } /** Updater for field Test2.d */ public Test2 updateD(Domain _d){ return new Test2(i, s, _d, c); } /** Updater for field Test2.c */ public Test2 updateC(Claim _c){ return new Test2(i, s, d, _c); } /** Getter for field Test2.i */ public Instance getI(){ return i; } /** Getter for field Test2.s */ public Solution getS(){ return s; } /** Getter for field Test2.d */ public Domain getD(){ return d; } /** Getter for field Test2.c */ public Claim getC(){ return c; } }