// ** 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 Adj */ public class Adj{ public final Vertex vertex; public final Neighbors ns; /** Construct a(n) Adj Instance */ public Adj(Vertex vertex, Neighbors ns){ this.vertex = vertex; this.ns = ns; } /** Is the given Adj Equal to this one? */ public boolean equals(Object o){ if(!(o instanceof Adj))return false; Adj oo = (Adj)o; return (((Object)vertex).equals(oo.vertex))&&(((Object)ns).equals(oo.ns)); } /** Parse an instance of Adj from the given String */ public static Adj parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_Adj(); } /** Parse an instance of Adj from the given Stream */ public static Adj parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_Adj(); } /** Parse an instance of Adj from the given Reader */ public static Adj parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_Adj(); } /** Field Class for Adj.vertex */ public static class vertex extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for Adj.ns */ public static class ns 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); } }