/* File: super.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: Superclasses Keywords and Node. Keywords for messaging, used in nodes. These are static strings that are inherited by nodes for packet content labeling. They are initialized (once) in super.cp. Node class defined here also. Modification history: 8/1/98: RPF. Started. 8/4/98: RPF. Moved get() and put() and their local vars here. 8/8/98: RPF. Changed from links to connectors. Added ring_confirm keyword. */ class Keywords { public: // we encapsulate control strings as static members // strings are used for human-readable packet content labeling static string *pickup; static string *hangup; static string *dial; static string *ring; static string *ring_confirm; static string *busy; static string *speech; static string *null_string; }; class Node : public Keywords{ public: Packet *packet1, *packet2; // local vars Connector *connector1, *connector2; // local vars void run(); // every node is run void do_states(); void put(Packet*); // puts packet in link (putting NULL allowed) Packet *get(); // gets packet from link (may be NULL) };