// ** This file was generated with DemFGen (vers:4/15/2011)

package nwf;

import edu.neu.ccs.demeterf.lib.*;
import edu.neu.ccs.demeterf.lib.*;
import scg.*;
import edu.neu.ccs.demeterf.lib.*;
import edu.neu.ccs.demeterf.*;
import java.util.Iterator;





/** Representation of Adjacency<N, L1, L2> */
public class Adjacency<N, L1, L2>{
    protected N source;
    protected List<NodeAndLabel<N, L1, L2>> successors;

    /** Construct a(n) Adjacency<N, L1, L2> Instance */
    public Adjacency(N source, List<NodeAndLabel<N, L1, L2>> successors){
        this.source = source;
        this.successors = successors;
    }
    /** Is the given object Equal to this Adjacency? */
    public boolean equals(Object o){
        if(!(o instanceof Adjacency))return false;
        if(o == this)return true;
        Adjacency<N, L1, L2> oo = (Adjacency<N, L1, L2>)o;
        return (((Object)source).equals(oo.source))&&(((Object)successors).equals(oo.successors));
    }

    /** Field Class for Adjacency.source */
    public static class source extends edu.neu.ccs.demeterf.Fields.any{}
    /** Field Class for Adjacency.successors */
    public static class successors extends edu.neu.ccs.demeterf.Fields.any{}

    /** DGP method from Class Display */
    public String display(){ return nwf.Display.DisplayM(this); }
    /** DGP method from Class Print */
    public String print(){ return nwf.Print.PrintM(this); }
    /** DGP method from Class ToStr */
    public String toStr(){ return nwf.ToStr.ToStrM(this); }
    /** DGP method from Class PrintToString */
    public String toString(){ return nwf.PrintToString.PrintToStringM(this); }
    /** DGP method from Class HashCode */
    public int hashCode(){ return nwf.HashCode.HashCodeM(this); }
    /** Setter for field Adjacency.source */
    public void setSource(N _source){ source = _source; }
    /** Setter for field Adjacency.successors */
    public void setSuccessors(List<NodeAndLabel<N,L1,L2>> _successors){ successors = _successors; }
    /** Getter for field Adjacency.source */
    public N getSource(){ return source; }
    /** Getter for field Adjacency.successors */
    public List<NodeAndLabel<N,L1,L2>> getSuccessors(){ return successors; }

}


