// ** This file was generated with DemFGen (vers:12/15/2010)

package gen;

import edu.neu.ccs.demeterf.lib.*;
import edu.neu.ccs.demeterf.lib.*;
import edu.neu.ccs.demeterf.lib.*;
import edu.neu.ccs.demeterf.*;
import java.lang.Integer;
import edu.neu.ccs.demeterf.lib.*;
import edu.neu.ccs.demeterf.*;
import java.lang.Integer;





/** Representation of EA */
public class EA extends Protocol{

    /** Construct a(n) EA Instance */
    public EA(ProtocolName protocolName){
        super(protocolName);
    }
    /** Is the given object Equal to this EA? */
    public boolean equals(Object o){
        if(!(o instanceof EA))return false;
        if(o == this)return true;
        EA oo = (EA)o;
        return (((Object)protocolName).equals(oo.protocolName));
    }
    /** Parse an instance of EA from the given String */
    public static EA parse(String inpt) throws gen.ParseException{
        return new gen.TheParser(new java.io.StringReader(inpt)).parse_EA();
    }
    /** Parse an instance of EA from the given Stream */
    public static EA parse(java.io.InputStream inpt) throws gen.ParseException{
        return new gen.TheParser(inpt).parse_EA();
    }
    /** Parse an instance of EA from the given Reader */
    public static EA parse(java.io.Reader inpt) throws gen.ParseException{
        return new gen.TheParser(inpt).parse_EA();
    }


    /** 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 EA.protocolName */
    public EA updateProtocolName(ProtocolName _protocolName){
        return new EA(_protocolName);
    }
    /** Getter for field EA.protocolName */
    public ProtocolName getProtocolName(){ return protocolName; }

}