// ** 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.*; import java.lang.Integer; /** Representation of Claim */ public class Claim implements ClaimInterface{ protected final InstanceSet is; protected final Protocol p; /** Construct a(n) Claim Instance */ public Claim(InstanceSet is, Protocol p){ this.is = is; this.p = p; } /** Is the given object Equal to this Claim? */ public boolean equals(Object o){ if(!(o instanceof Claim))return false; if(o == this)return true; Claim oo = (Claim)o; return (((Object)is).equals(oo.is))&&(((Object)p).equals(oo.p)); } /** Parse an instance of Claim from the given String */ public static Claim parse(String inpt) throws gen.ParseException{ return new gen.TheParser(new java.io.StringReader(inpt)).parse_Claim(); } /** Parse an instance of Claim from the given Stream */ public static Claim parse(java.io.InputStream inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_Claim(); } /** Parse an instance of Claim from the given Reader */ public static Claim parse(java.io.Reader inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_Claim(); } /** Field Class for Claim.is */ public static class is extends edu.neu.ccs.demeterf.Fields.any{} /** Field Class for Claim.p */ public static class p 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 Claim.is */ public Claim updateIs(InstanceSet _is){ return new Claim(_is, p); } /** Updater for field Claim.p */ public Claim updateP(Protocol _p){ return new Claim(is, _p); } /** Getter for field Claim.is */ public InstanceSet getIs(){ return is; } /** Getter for field Claim.p */ public Protocol getP(){ return p; } }