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