// ** This class was generated with DemFGen (vers:06/04/2009) package gen; import edu.neu.ccs.demeterf.demfgen.lib.*; /** Representation of Player */ public class Player{ public PlayerID id; public String name; /** Construct a(n) Player Instance */ public Player(PlayerID id, String name){ this.id = id; this.name = name; } /** Is the given object Equal to this Player? */ public boolean equals(Object o){ if(!(o instanceof Player))return false; if(o == this)return true; Player oo = (Player)o; return (((Object)id).equals(oo.id))&&(((Object)name).equals(oo.name)); } /** Parse an instance of Player from the given String */ public static Player parse(String inpt) throws ParseException{ return new TheParser(new java.io.StringReader(inpt)).parse_Player(); } /** Parse an instance of Player from the given Stream */ public static Player parse(java.io.InputStream inpt) throws ParseException{ return new TheParser(inpt).parse_Player(); } /** Parse an instance of Player from the given Reader */ public static Player parse(java.io.Reader inpt) throws ParseException{ return new TheParser(inpt).parse_Player(); } /** Field Class for Player.id */ public static class id extends edu.neu.ccs.demeterf.control.Fields.any{} /** Field Class for Player.name */ public static class name 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 PrintHeap */ public String print(){ return gen.PrintHeap.PrintHeapM(this); } /** DGP method from Class PrintHeapToString */ public String toString(){ return gen.PrintHeapToString.PrintHeapToStringM(this); } }