A simulated phone network using object oriented programming! Create phone objects that can interact across a switch, and connect switches with trunk lines to connect them to other switches. You can contact phone numbers to test your network and ensure that phones are set up correctly. This is all handled with provided commands.
display : Displays current network configuration including all switchboards, connections, and phone numbers.
switch-add [area code]: Creates a switch with a user-specified numeric area code.
switch-connect [area code] [area code]: Connects two switches of different area codes, so that the phones associated with those switches can communicate with each other.
phone-add [area code]-[ext1]-[ext2]: Creates a phone with the specified number based on an area code of an already created switch, as well as two extensions.
start-call [phone number] [phone number]: Initiates a "call" between two phone numbers. Logically, this just verifies a pathway across switches to both phone numbers.
end-call [phone number]: Ends the call between phone numbers
network-save [filename]: Saves the network to a file
network-load [filename]: Loads the network from a file and overrides the current network
- Download all
.pyfiles and runnetwork.py - Use
switch-addto set up a switches with specifiic area codes - Use
phone-addto attach a phone to a switch's area code - Connect those switches together with
switch-connect - Simulate an active connection with
start-call - Check on your network with
display