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