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