// ** This class was generated with DemFGen (vers:06/04/2009) package gen; import edu.neu.ccs.demeterf.demfgen.lib.*; /** Representation of Derivative */ public class Derivative{ public String name; public PlayerID seller; public Option optbuyer; public Price price; public Type type; public Option optraw; public Option optfinished; /** Construct a(n) Derivative Instance */ public Derivative(String name, PlayerID seller, Option optbuyer, Price price, Type type, Option optraw, Option optfinished){ this.name = name; this.seller = seller; this.optbuyer = optbuyer; this.price = price; this.type = type; this.optraw = optraw; this.optfinished = optfinished; } /** Is the given object Equal to this Derivative? */ public boolean equals(Object o){ if(!(o instanceof Derivative))return false; if(o == this)return true; Derivative oo = (Derivative)o; return (((Object)name).equals(oo.name))&&(((Object)seller).equals(oo.seller))&&(((Object)optbuyer).equals(oo.optbuyer))&&(((Object)price).equals(oo.price))&&(((Object)type).equals(oo.type))&&(((Object)optraw).equals(oo.optraw))&&(((Object)optfinished).equals(oo.optfinished)); } /** Parse an instance of Derivative from the given String */ public static Derivative parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_Derivative(); } /** Parse an instance of Derivative from the given Stream */ public static Derivative parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_Derivative(); } /** Parse an instance of Derivative from the given Reader */ public static Derivative parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_Derivative(); } /** Field Class for Derivative.name */ public static class name extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for Derivative.seller */ public static class seller extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for Derivative.optbuyer */ public static class optbuyer extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for Derivative.price */ public static class price extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for Derivative.type */ public static class type extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for Derivative.optraw */ public static class optraw extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for Derivative.optfinished */ public static class optfinished extends edu.neu.ccs.demeterf.control.Fields.any{} /** DGP method from Class Display */ public String display(){ return gen.Display.DisplayM(this); } /** DGP method from Class PrintHeap */ public String print(){ return gen.PrintHeap.PrintHeapM(this); } /** DGP method from Class PrintHeapToString */ public String toString(){ return gen.PrintHeapToString.PrintHeapToStringM(this); } }