Question: Create a class diagram with these classes. Name the arguments whatever makes sense for these situations: ConnectionMgr class Attributes: instance ( ConnectionMgr ) connections (

Create a class diagram with these classes. Name the arguments whatever makes sense for these situations:
ConnectionMgr class
Attributes:
instance (ConnectionMgr)
connections (List of BaseConnection objects)
Methods:
createInstance() returning ConnectionMgr
getInstance() returning ConnectionMgr
CTOR (constructor)
getConnection(String argument) returning BaseConnection
BaseConnection class (abstract)
Attributes:
unreadMessages(list of Message objects)
Methods:
nextMessage() returning Message object
sendMessage(Message argument)
BluetoothConnection class
Attributes:
remoteHost(String)
Methods:
CTOR (String IP and int port)
isConnected() returning bool
Message class
Attributes:
date (Date)
theMessage (String)
Methods:
CTOR(String called theMessage)
Getters for both attributes
Relationships
ConnectionMgr has a 1..n relationship with BaseConnection
BaseConnection has a 1..n relationship with Message
BluetoothConnection extends BaseConnectionCreate a class diagram with these classes. Name the arguments whatever makes sense for these situations:
ConnectionMgr class
Attributes:
instance (ConnectionMgr)
connections (List of BaseConnection objects)
Methods:
createInstance() returning ConnectionMgr
getInstance() returning ConnectionMgr
CTOR (constructor)
getConnection(String argument) returning BaseConnection
BaseConnection class (abstract)
Attributes:
unreadMessages(list of Message objects)
Methods:
nextMessage() returning Message object
sendMessage(Message argument)
BluetoothConnection class
Attributes:
remoteHost(String)
Methods:
CTOR (String IP and int port)
isConnected() returning bool
Message class
Attributes:
date (Date)
theMessage (String)
Methods:
CTOR(String called theMessage)
Getters for both attributes
Relationships
ConnectionMgr has a 1..n relationship with BaseConnection
BaseConnection has a 1..n relationship with Message
BluetoothConnection extends BaseConnectionCreate a class diagram with these classes. Name the arguments whatever makes sense for these situations:
ConnectionMgr class
a. Attributes:
i. instance (ConnectionMgr)
ii. connections (List of BaseConnection objects)
b. Methods:
i. createlnstance() returning ConnectionMgr
ii. getInstance() returning ConnectionMgr
iii. CTOR (constructor)
iv. getConnection(String argument) returning BaseConnection
BaseConnection class (abstract)
a. Attributes:
i. unreadMessages(list of Message objects)
b. Methods:
i. nextMessage() returning Message object
ii. sendMessage(Message argument)
BluetoothConnection class
a. Attributes:
i. remoteHost(String)
b. Methods:
i. CTOR (String IP and int port)
ii. isConnected() returning bool
Message class
a. Attributes:
i. date (Date)
ii. theMessage (String)
b. Methods:
i. CTOR(String called theMessage)
ii. Getters for both attributes
Relationships
a. ConnectionMgr has a 1..n relationship with BaseConnection
b. BaseConnection has a 1..n relationship with Message
c. BluetoothConnection extends BaseConnection
 Create a class diagram with these classes. Name the arguments whatever

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!