// ** This class was generated with DemFGen (vers:02/27/2009) package gen; import edu.neu.ccs.demeterf.demfgen.lib.*; import edu.neu.ccs.demeterf.*; /** Representation of PaperBoy */ public class PaperBoy{ public final Customer customer; public final int payment; /** Construct a(n) PaperBoy Instance */ public PaperBoy(Customer customer, int payment){ this.customer = customer; this.payment = payment; } /** Is the given PaperBoy Equal to this one? */ public boolean equals(Object o){ if(!(o instanceof PaperBoy))return false; PaperBoy oo = (PaperBoy)o; return (((Object)customer).equals(oo.customer))&&(((Object)payment).equals(oo.payment)); } /** Parse an instance of PaperBoy from the given String */ public static PaperBoy parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_PaperBoy(); } /** Parse an instance of PaperBoy from the given Stream */ public static PaperBoy parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_PaperBoy(); } /** Parse an instance of PaperBoy from the given Reader */ public static PaperBoy parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_PaperBoy(); } /** Field Class for PaperBoy.customer */ public static class customer extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for PaperBoy.payment */ public static class payment extends edu.neu.ccs.demeterf.control.Fields.any{} public int moneyAvailableLoDV () { return customer.wallet.m.v + // customer.apartment.kitchen.kitchenCabinet.m.v + // customer.apartment.bedroom.mattress.m.v ; customer.apartment.kitchen.kitchenCabinet.m.v + customer.apartment.bedrooms.parents.mattress.m.v + customer.apartment.bedrooms.children.mattress.m.v ; } /** 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); } }