// ** This class was generated with DemFGen (vers:06/04/2009) package gen; import edu.neu.ccs.demeterf.demfgen.lib.*; import edu.neu.ccs.demeterf.demfgen.lib.*; /** Representation of Weight */ public class Weight{ public int v; /** Construct a(n) Weight Instance */ public Weight(int v){ this.v = v; } /** Is the given object Equal to this Weight? */ public boolean equals(Object o){ if(!(o instanceof Weight))return false; if(o == this)return true; Weight oo = (Weight)o; return (((Object)v).equals(oo.v)); } /** Parse an instance of Weight from the given String */ public static Weight parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_Weight(); } /** Parse an instance of Weight from the given Stream */ public static Weight parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_Weight(); } /** Parse an instance of Weight from the given Reader */ public static Weight parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_Weight(); } /** Field Class for Weight.v */ public static class v 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); } }