// ** This file was generated with DemFGen (vers:12/15/2010) package gen; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.*; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.*; import java.lang.Integer; /** Representation of PG_Claim */ public class PG_Claim implements PG_ClaimInterface{ protected final SCG_ProtocolName protoName; /** Construct a(n) PG_Claim Instance */ public PG_Claim(SCG_ProtocolName protoName){ this.protoName = protoName; } /** Is the given object Equal to this PG_Claim? */ public boolean equals(Object o){ if(!(o instanceof PG_Claim))return false; if(o == this)return true; PG_Claim oo = (PG_Claim)o; return (((Object)protoName).equals(oo.protoName)); } /** Parse an instance of PG_Claim from the given String */ public static PG_Claim parse(String inpt) throws gen.ParseException{ return new gen.TheParser(new java.io.StringReader(inpt)).parse_PG_Claim(); } /** Parse an instance of PG_Claim from the given Stream */ public static PG_Claim parse(java.io.InputStream inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_PG_Claim(); } /** Parse an instance of PG_Claim from the given Reader */ public static PG_Claim parse(java.io.Reader inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_PG_Claim(); } /** Field Class for PG_Claim.protoName */ public static class protoName extends edu.neu.ccs.demeterf.Fields.any{} public double quality(PG_Claim c) { return 0.0; } /** 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 PG_Claim.protoName */ public PG_Claim updateProtoName(SCG_ProtocolName _protoName){ return new PG_Claim(_protoName); } /** Getter for field PG_Claim.protoName */ public SCG_ProtocolName getProtoName(){ return protoName; } }