-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.py
34 lines (29 loc) · 988 Bytes
/
server.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#########################################
# This project is a lab assignment #
# for the Essential Skills Module. #
# University of Amsterdam #
# MSc in System and Network Engineering #
# Nick Trintafyllidis. #
# Use it as you wish :) #
#########################################
class Server(object):
def __init__(self):
self.name = "None"
self.make = "IBM"
self.os = "Ubuntu 14.10 Server"
self.connection = "None"
self.owner = "Nobody"
def printinfo(self):
print "*****"
print "Name:" + self.name
print "Make:" + self.make
print "Connection:" + self.connection
print "Operating System:" + self.os
print "Owner:" + self.owner
print "*****"
def connect(self, connection):
self.connection = connection
def assign(self, owner):
self.owner = owner
def name_it(self, name):
self.name = name