// ** 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 EP */ public class EP{ protected final Expectation e; protected final PlayerProxy p; protected final boolean ok; /** Construct a(n) EP Instance */ public EP(Expectation e, PlayerProxy p, boolean ok){ this.e = e; this.p = p; this.ok = ok; } /** Is the given object Equal to this EP? */ public boolean equals(Object o){ if(!(o instanceof EP))return false; if(o == this)return true; EP oo = (EP)o; return (((Object)e).equals(oo.e))&&(((Object)p).equals(oo.p))&&(((Object)ok).equals(oo.ok)); } /** Parse an instance of EP from the given String */ public static EP parse(String inpt) throws gen.ParseException{ return new gen.TheParser(new java.io.StringReader(inpt)).parse_EP(); } /** Parse an instance of EP from the given Stream */ public static EP parse(java.io.InputStream inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_EP(); } /** Parse an instance of EP from the given Reader */ public static EP parse(java.io.Reader inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_EP(); } /** Field Class for EP.e */ public static class e extends edu.neu.ccs.demeterf.Fields.any{} /** Field Class for EP.p */ public static class p extends edu.neu.ccs.demeterf.Fields.any{} /** Field Class for EP.ok */ public static class ok 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 EP.e */ public EP updateE(Expectation _e){ return new EP(_e, p, ok); } /** Updater for field EP.p */ public EP updateP(PlayerProxy _p){ return new EP(e, _p, ok); } /** Updater for field EP.ok */ public EP updateOk(boolean _ok){ return new EP(e, p, _ok); } /** Getter for field EP.e */ public Expectation getE(){ return e; } /** Getter for field EP.p */ public PlayerProxy getP(){ return p; } /** Getter for field EP.ok */ public boolean getOk(){ return ok; } }