// ** This file was generated with DemFGen (vers:12/15/2010) package gen; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.*; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.*; import java.lang.Integer; /** Representation of PG_Test */ public class PG_Test{ protected final PG_Instance i; protected final PG_Solution s; protected final PG_Claim c; protected final ProtocolTest p; protected final SCG_Playground scg_pg; /** Construct a(n) PG_Test Instance */ public PG_Test(PG_Instance i, PG_Solution s, PG_Claim c, ProtocolTest p, SCG_Playground scg_pg){ this.i = i; this.s = s; this.c = c; this.p = p; this.scg_pg = scg_pg; } /** Is the given object Equal to this PG_Test? */ public boolean equals(Object o){ if(!(o instanceof PG_Test))return false; if(o == this)return true; PG_Test oo = (PG_Test)o; return (((Object)i).equals(oo.i))&&(((Object)s).equals(oo.s))&&(((Object)c).equals(oo.c))&&(((Object)p).equals(oo.p))&&(((Object)scg_pg).equals(oo.scg_pg)); } /** Parse an instance of PG_Test from the given String */ public static PG_Test parse(String inpt) throws gen.ParseException{ return new gen.TheParser(new java.io.StringReader(inpt)).parse_PG_Test(); } /** Parse an instance of PG_Test from the given Stream */ public static PG_Test parse(java.io.InputStream inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_PG_Test(); } /** Parse an instance of PG_Test from the given Reader */ public static PG_Test parse(java.io.Reader inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_PG_Test(); } /** Field Class for PG_Test.i */ public static class i extends edu.neu.ccs.demeterf.Fields.any{} /** Field Class for PG_Test.s */ public static class s extends edu.neu.ccs.demeterf.Fields.any{} /** Field Class for PG_Test.c */ public static class c extends edu.neu.ccs.demeterf.Fields.any{} /** Field Class for PG_Test.p */ public static class p extends edu.neu.ccs.demeterf.Fields.any{} /** Field Class for PG_Test.scg_pg */ public static class scg_pg 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 PG_Test.i */ public PG_Test updateI(PG_Instance _i){ return new PG_Test(_i, s, c, p, scg_pg); } /** Updater for field PG_Test.s */ public PG_Test updateS(PG_Solution _s){ return new PG_Test(i, _s, c, p, scg_pg); } /** Updater for field PG_Test.c */ public PG_Test updateC(PG_Claim _c){ return new PG_Test(i, s, _c, p, scg_pg); } /** Updater for field PG_Test.p */ public PG_Test updateP(ProtocolTest _p){ return new PG_Test(i, s, c, _p, scg_pg); } /** Updater for field PG_Test.scg_pg */ public PG_Test updateScg_pg(SCG_Playground _scg_pg){ return new PG_Test(i, s, c, p, _scg_pg); } /** Getter for field PG_Test.i */ public PG_Instance getI(){ return i; } /** Getter for field PG_Test.s */ public PG_Solution getS(){ return s; } /** Getter for field PG_Test.c */ public PG_Claim getC(){ return c; } /** Getter for field PG_Test.p */ public ProtocolTest getP(){ return p; } /** Getter for field PG_Test.scg_pg */ public SCG_Playground getScg_pg(){ return scg_pg; } }