// ** 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 NodeAndLabel */ public class NodeAndLabel{ protected N n; protected L1 label1; protected L2 label2; /** Construct a(n) NodeAndLabel Instance */ public NodeAndLabel(N n, L1 label1, L2 label2){ this.n = n; this.label1 = label1; this.label2 = label2; } /** Is the given object Equal to this NodeAndLabel? */ public boolean equals(Object o){ if(!(o instanceof NodeAndLabel))return false; if(o == this)return true; NodeAndLabel oo = (NodeAndLabel)o; return (((Object)n).equals(oo.n))&&(((Object)label1).equals(oo.label1))&&(((Object)label2).equals(oo.label2)); } /** Field Class for NodeAndLabel.n */ public static class n extends edu.neu.ccs.demeterf.Fields.any{} /** Field Class for NodeAndLabel.label1 */ public static class label1 extends edu.neu.ccs.demeterf.Fields.any{} /** Field Class for NodeAndLabel.label2 */ public static class label2 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 NodeAndLabel.n */ public void setN(N _n){ n = _n; } /** Setter for field NodeAndLabel.label1 */ public void setLabel1(L1 _label1){ label1 = _label1; } /** Setter for field NodeAndLabel.label2 */ public void setLabel2(L2 _label2){ label2 = _label2; } /** Getter for field NodeAndLabel.n */ public N getN(){ return n; } /** Getter for field NodeAndLabel.label1 */ public L1 getLabel1(){ return label1; } /** Getter for field NodeAndLabel.label2 */ public L2 getLabel2(){ return label2; } }