// ** This file was generated with DemFGen (vers:12/15/2010) package gen; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.*; import java.lang.Integer; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.*; import java.lang.Integer; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.*; import java.lang.Integer; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.*; import java.lang.Integer; /** Representation of ProvideSolutionExpectation */ public class ProvideSolutionExpectation extends Expectation2{ protected final Instance toBeSolved; protected final Claim belongsTo; /** Construct a(n) ProvideSolutionExpectation Instance */ public ProvideSolutionExpectation(Instance toBeSolved, Claim belongsTo){ this.toBeSolved = toBeSolved; this.belongsTo = belongsTo; } /** Is the given object Equal to this ProvideSolutionExpectation? */ public boolean equals(Object o){ if(!(o instanceof ProvideSolutionExpectation))return false; if(o == this)return true; ProvideSolutionExpectation oo = (ProvideSolutionExpectation)o; return (((Object)toBeSolved).equals(oo.toBeSolved))&&(((Object)belongsTo).equals(oo.belongsTo)); } /** Parse an instance of ProvideSolutionExpectation from the given String */ public static ProvideSolutionExpectation parse(String inpt) throws gen.ParseException{ return new gen.TheParser(new java.io.StringReader(inpt)).parse_ProvideSolutionExpectation(); } /** Parse an instance of ProvideSolutionExpectation from the given Stream */ public static ProvideSolutionExpectation parse(java.io.InputStream inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_ProvideSolutionExpectation(); } /** Parse an instance of ProvideSolutionExpectation from the given Reader */ public static ProvideSolutionExpectation parse(java.io.Reader inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_ProvideSolutionExpectation(); } /** Field Class for ProvideSolutionExpectation.toBeSolved */ public static class toBeSolved extends edu.neu.ccs.demeterf.Fields.any{} /** Field Class for ProvideSolutionExpectation.belongsTo */ public static class belongsTo extends edu.neu.ccs.demeterf.Fields.any{} /** 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); } /** Updater for field ProvideSolutionExpectation.toBeSolved */ public ProvideSolutionExpectation updateToBeSolved(Instance _toBeSolved){ return new ProvideSolutionExpectation(_toBeSolved, belongsTo); } /** Updater for field ProvideSolutionExpectation.belongsTo */ public ProvideSolutionExpectation updateBelongsTo(Claim _belongsTo){ return new ProvideSolutionExpectation(toBeSolved, _belongsTo); } /** Getter for field ProvideSolutionExpectation.toBeSolved */ public Instance getToBeSolved(){ return toBeSolved; } /** Getter for field ProvideSolutionExpectation.belongsTo */ public Claim getBelongsTo(){ return belongsTo; } }