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

package csp;

import edu.neu.ccs.demeterf.lib.*;
import edu.neu.ccs.demeterf.lib.*;
import java.lang.reflect.*;
import scg.*;





/** Representation of CSPInstanceSet */
public class CSPInstanceSet implements InstanceSetI{
    protected ListSet<Integer> type;

    /** Construct a(n) CSPInstanceSet Instance */
    public CSPInstanceSet(ListSet<Integer> type){
        this.type = type;
    }
    /** Is the given object Equal to this CSPInstanceSet? */
    public boolean equals(Object o){
        if(!(o instanceof CSPInstanceSet))return false;
        if(o == this)return true;
        CSPInstanceSet oo = (CSPInstanceSet)o;
        return (((Object)type).equals(oo.type));
    }
    /** Parse an instance of CSPInstanceSet from the given String */
    public static CSPInstanceSet parse(String inpt) throws csp.ParseException{
        return new csp.TheParser(new java.io.StringReader(inpt)).parse_CSPInstanceSet();
    }
    /** Parse an instance of CSPInstanceSet from the given Stream */
    public static CSPInstanceSet parse(java.io.InputStream inpt) throws csp.ParseException{
        return new csp.TheParser(inpt).parse_CSPInstanceSet();
    }
    /** Parse an instance of CSPInstanceSet from the given Reader */
    public static CSPInstanceSet parse(java.io.Reader inpt) throws csp.ParseException{
        return new csp.TheParser(inpt).parse_CSPInstanceSet();
    }

    /** Field Class for CSPInstanceSet.type */
    public static class type extends edu.neu.ccs.demeterf.Fields.any{}

        /** Is this a valid/well-formed Instance of the given instance? */
        public Option<String> belongsTo(Instance instance){
        	//...
        	return null;
        }        
        
        /** Is this a valid/well-formed InstanceSet? */
	    public Option<String> valid(){
	       //Semantic checks
	       return null;
	    }    

    /** DGP method from Class Print */
    public String print(){ return csp.Print.PrintM(this); }
    /** Setter for field CSPInstanceSet.type */
    public void setType(ListSet<Integer> _type){ type = _type; }
    /** Getter for field CSPInstanceSet.type */
    public ListSet<Integer> getType(){ return type; }

}


