// ** This file was generated with DemFGen (vers:4/12/2011) package gen; import edu.neu.ccs.demeterf.lib.*; import edu.neu.ccs.demeterf.*; /** Representation of NodeAndLabel */ public class NodeAndLabel{ protected final N n; protected final L1 label1; protected final 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 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 NodeAndLabel.n */ public NodeAndLabel updateN(N _n){ return new NodeAndLabel(_n, label1, label2); } /** Updater for field NodeAndLabel.label1 */ public NodeAndLabel updateLabel1(L1 _label1){ return new NodeAndLabel(n, _label1, label2); } /** Updater for field NodeAndLabel.label2 */ public NodeAndLabel updateLabel2(L2 _label2){ return new NodeAndLabel(n, label1, _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; } }