// ** 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 Start */ public class Start{ public final List sample; /** Construct a(n) Start Instance */ public Start(List sample){ this.sample = sample; } /** Is the given Start Equal to this one? */ public boolean equals(Object o){ if(!(o instanceof Start))return false; Start oo = (Start)o; return (((Object)sample).equals(oo.sample)); } /** Parse an instance of Start from the given String */ public static Start parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_Start(); } /** Parse an instance of Start from the given Stream */ public static Start parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_Start(); } /** Parse an instance of Start from the given Reader */ public static Start parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_Start(); } /** Field Class for Start.sample */ public static class sample extends edu.neu.ccs.demeterf.control.Fields.any{} public Start magic() { return new Traversal(new Bc(){ Money combine(Money a, int v){return new Money(v+10);} Customer combine(Customer c, Wallet w, Apartment a){ Customer modified = c.getPayment(25); Main.p(" customer with money subtracted "); Main.p(modified.display() + "\n"); Main.p(c.moneyAvailableLoD0() + " money available LoD 0 \n"); Main.p(c.moneyAvailableLoD1() + " money available LoD 1 \n"); Main.p(c.moneyAvailableLoD2() + " money available LoD 2 \n"); Main.p(c.moneyAvailableLoD3() + " money available LoD 3 \n"); Main.p(c.moneyAvailableLoD4() + " money available LoD 4 \n"); return new Customer(w,a); } PaperBoy combine(PaperBoy p, Customer c, int i){ Main.p(p.moneyAvailableLoDV() + " money available LoDV \n"); return new PaperBoy(c,i); } }). traverse(this); } /** 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); } }