HTTP/1.1 200 OK Date: Tue, 12 Jun 2001 17:29:32 GMT Server: Apache/1.3.12 (Unix) ApacheJServ/1.1.2 Set-Cookie: Apache=204.210.50.240.24551992366972161; path=/ Last-Modified: Tue, 21 May 1996 20:08:48 GMT ETag: "a1917-9ce-31a222d0" Accept-Ranges: bytes Content-Length: 2510 Connection: close Content-Type: text/plain //**************************************************************************** // ---- version information ---- // // ThreeOrPort.java v 1.00 b1 // Written by: I. van Rienen / E-mail ivr@bart.nl // URL: http://www/bart.nl/~ivr // Initial release: // Released in public domain: // // ---- Description ---- // Java class containing methods for a 3-input OR port // // This program and the Java source is in the public domain. // Permission to use, copy, modify, and distribute this software // and its documentation for NON-COMMERCIAL purposes and // without fee is hereby granted. // // Copyright 1996 // // Iwan van Rienen // Joan Maetsuyckerstr. 145 // 2593 ZG The Hague // The Netherlands // // I am not responsible for any bugs in this program and // possible damage to hard- or software when using this program. //**************************************************************************** import java.applet.Applet; import java.awt.*; import java.util.Vector; class ThreeOrPort extends OrPort { //---------------------------------------------------------------------------- // The constructor of a 3-input OR port //---------------------------------------------------------------------------- public ThreeOrPort(Pin PinGrid[][], int x, int y) { super(3, x, y, ComponentPin.PIN_TEXT_INVISIBLE); ComponentName = "3-input OR port"; ClassName = "ThreeOrPort"; IPin[0] = new InputPin("A", 1, 2, 2, 0, 0, 0, ComponentPin.PIN_TEXT_INVISIBLE); IPin[1] = new InputPin("B", 1, 3, 2, 0, 0, 0, ComponentPin.PIN_TEXT_INVISIBLE); IPin[2] = new InputPin("C", 1, 4, 2, 0, 0, 0, ComponentPin.PIN_TEXT_INVISIBLE); RegisterPins (PinGrid, x, y); } //---------------------------------------------------------------------------- // The constructor of a new 3-input OR port, which is a copy of CompToCopy //---------------------------------------------------------------------------- public ThreeOrPort (ElectronicComponent CompToCopy, int xo, int yo) { super (CompToCopy, xo, yo); } //---------------------------------------------------------------------------- // Method for copying this component. //---------------------------------------------------------------------------- public ElectronicComponent Copy(int xo, int yo) { ThreeOrPort NewComponent = new ThreeOrPort(this, xo, yo); return NewComponent; } }