// // (C) COPYRIGHT International Business Machines Corp. 1997 // All Rights Reserved // Licensed Materials - Property of IBM // // US Government Users Restricted Rights - Use, duplication or // disclosure restricted by GSA ADP Schedule Contract with IBM Corp. // /* * $Header: /home/gda/dxcvs/dx/src/ui++/java/dx/net/BinaryNode.java,v 1.1.1.1 1999/03/24 15:17:30 gda Exp $ */ package dx.net; import java.util.*; import dx.runtime.*; public class BinaryNode extends dx.net.InteractorNode { private int second_param_number; public BinaryNode(Network net, String name, int instance, String notation) { super(net, name, instance, notation); this.second_param_number = 2; } public void setParameterNumber(int p, int q) { super.setParameterNumber(p); this.second_param_number = q; } public int getExtraParameterNumber() { return this.second_param_number; } public void setOutputValues (String name, String value) { Network net = this.getNetwork(); DXLinkApplication dxa = (DXLinkApplication)net.getApplet(); boolean resume = dxa.getEocMode(); if (resume) dxa.setEocMode(false); this.setOutputValue (name); this.setOutputValue (this.getExtraParameterNumber(), value); if (resume) dxa.setEocMode(true); } }; // end BinaryNode