// ** 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_Instance */ public class PG_Instance{ protected final int n; protected final int k; /** Construct a(n) PG_Instance Instance */ public PG_Instance(int n, int k){ this.n = n; this.k = k; } /** Is the given object Equal to this PG_Instance? */ public boolean equals(Object o){ if(!(o instanceof PG_Instance))return false; if(o == this)return true; PG_Instance oo = (PG_Instance)o; return (((Object)n).equals(oo.n))&&(((Object)k).equals(oo.k)); } /** Parse an instance of PG_Instance from the given String */ public static PG_Instance parse(String inpt) throws gen.ParseException{ return new gen.TheParser(new java.io.StringReader(inpt)).parse_PG_Instance(); } /** Parse an instance of PG_Instance from the given Stream */ public static PG_Instance parse(java.io.InputStream inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_PG_Instance(); } /** Parse an instance of PG_Instance from the given Reader */ public static PG_Instance parse(java.io.Reader inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_PG_Instance(); } /** Field Class for PG_Instance.n */ public static class n extends edu.neu.ccs.demeterf.Fields.any{} /** Field Class for PG_Instance.k */ public static class k 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_Instance.n */ public PG_Instance updateN(int _n){ return new PG_Instance(_n, k); } /** Updater for field PG_Instance.k */ public PG_Instance updateK(int _k){ return new PG_Instance(n, _k); } /** Getter for field PG_Instance.n */ public int getN(){ return n; } /** Getter for field PG_Instance.k */ public int getK(){ return k; } }