// ** This file was generated with DemFGen (vers:4/12/2011) package gen; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.*; /** Representation of Flow */ public class Flow{ protected final EdgeLabeledGraph g; /** Construct a(n) Flow Instance */ public Flow(EdgeLabeledGraph g){ this.g = g; } /** Is the given object Equal to this Flow? */ public boolean equals(Object o){ if(!(o instanceof Flow))return false; if(o == this)return true; Flow oo = (Flow)o; return (((Object)g).equals(oo.g)); } /** Parse an instance of Flow from the given String */ public static Flow parse(String inpt) throws gen.ParseException{ return new gen.TheParser(new java.io.StringReader(inpt)).parse_Flow(); } /** Parse an instance of Flow from the given Stream */ public static Flow parse(java.io.InputStream inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_Flow(); } /** Parse an instance of Flow from the given Reader */ public static Flow parse(java.io.Reader inpt) throws gen.ParseException{ return new gen.TheParser(inpt).parse_Flow(); } /** Field Class for Flow.g */ public static class g 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 Flow.g */ public Flow updateG(EdgeLabeledGraph _g){ return new Flow(_g); } /** Getter for field Flow.g */ public EdgeLabeledGraph getG(){ return g; } }