// ** This class was generated with DemFGen (vers:02/11/2009) package gen; import edu.neu.ccs.demeterf.demfgen.lib.*; import edu.neu.ccs.demeterf.*; /** Representation of Sum */ public class Sum extends Neighbors{ public final Vertex first; public final Vertex second; /** Construct a(n) Sum Instance */ public Sum(Vertex first, Vertex second){ this.first = first; this.second = second; } /** Is the given Sum Equal to this one? */ public boolean equals(Object o){ if(!(o instanceof Sum))return false; Sum oo = (Sum)o; return (((Object)first).equals(oo.first))&&(((Object)second).equals(oo.second)); } /** Parse an instance of Sum from the given String */ public static Sum parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_Sum(); } /** Parse an instance of Sum from the given Stream */ public static Sum parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_Sum(); } /** Parse an instance of Sum from the given Reader */ public static Sum parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_Sum(); } /** Field Class for Sum.first */ public static class first extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for Sum.second */ public static class second 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 Print */ public String print(){ return gen.Print.PrintM(this); } /** DGP method from Class ToStr */ public String toStr(){ return gen.ToStr.ToStrM(this); } }