/* File: link.h Author: R. P. Futrelle Date: 8/8/98 Notice: Copyright 1998 by R. P. Futrelle and the College of Computer Science, Northeastern University Class: COM1204, Object-Oriented Design, Summer 1998. Proj: PS2.µ Metrowerks Code Warrior Mac. Done in IDE version 2.0.1. Purpose: Connector and Wire class definitions. Each phone has a connector and each switch has an array of connectors. A wire from the out slot of a connector of a phone connects to the in slot of the connector in the switch, and vice versa -- essentially a null modem connection. Modification history: 8/1/98: RPF. Started. 8/8/98: RPF. Major change from links to connectors/wires architecture. */ class Connector { public: static int next_id; int id; Wire *in; Wire *out; Connector(); }; class Wire { public: static int next_id; int id; Packet *packet; Wire(); };