// ** This class was generated with DemFGen (vers:09/12/2009)

package gen;

import java.io.FileInputStream;
import edu.neu.ccs.demeterf.lib.*;




/** Representation of Player */
public class Player{
    protected final PlayerID id;
    protected final 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 ToStr */
    public String toStr(){ return gen.ToStr.ToStrM(this); }
    /** DGP method from Class Print */
    public String print(){ return gen.Print.PrintM(this); }
    /** DGP method from Class Display */
    public String display(){ return gen.Display.DisplayM(this); }

}