// ** This class was generated with DemFGen (vers:09/12/2009) package gen; import java.io.FileInputStream; import edu.neu.ccs.demeterf.lib.*; /** Representation of BoughtDeriv */ public class BoughtDeriv{ protected final Challenge d; protected final PlayerID seller; protected final Option r; protected final Option f; /** Construct a(n) BoughtDeriv Instance */ public BoughtDeriv(Challenge d, PlayerID seller, Option r, Option f){ this.d = d; this.seller = seller; this.r = r; this.f = f; } /** Is the given object Equal to this BoughtDeriv? */ public boolean equals(Object o){ if(!(o instanceof BoughtDeriv))return false; if(o == this)return true; BoughtDeriv oo = (BoughtDeriv)o; return (((Object)d).equals(oo.d))&&(((Object)seller).equals(oo.seller))&&(((Object)r).equals(oo.r))&&(((Object)f).equals(oo.f)); } /** Parse an instance of BoughtDeriv from the given String */ public static BoughtDeriv parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_BoughtDeriv(); } /** Parse an instance of BoughtDeriv from the given Stream */ public static BoughtDeriv parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_BoughtDeriv(); } /** Parse an instance of BoughtDeriv from the given Reader */ public static BoughtDeriv parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_BoughtDeriv(); } /** Field Class for BoughtDeriv.d */ public static class d extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for BoughtDeriv.seller */ public static class seller extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for BoughtDeriv.r */ public static class r extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for BoughtDeriv.f */ public static class f extends edu.neu.ccs.demeterf.control.Fields.any{} /** DGP method from Class ToStr */ public String toStr(){ return gen.ToStr.ToStrM(this); } /** DGP method from Class Print */ public String print(){ return gen.Print.PrintM(this); } /** DGP method from Class Display */ public String display(){ return gen.Display.DisplayM(this); } }