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
getConnectionString argument returning BaseConnection
BaseConnection class abstract
Attributes:
unreadMessageslist of Message objects
Methods:
nextMessage returning Message object
sendMessageMessage argument
BluetoothConnection class
Attributes:
remoteHostString
Methods:
CTOR String IP and int port
isConnected returning bool
Message class
Attributes:
date Date
theMessage String
Methods:
CTORString called theMessage
Getters for both attributes
Relationships
ConnectionMgr has a n relationship with BaseConnection
BaseConnection has a 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
getConnectionString argument returning BaseConnection
BaseConnection class abstract
Attributes:
unreadMessageslist of Message objects
Methods:
nextMessage returning Message object
sendMessageMessage argument
BluetoothConnection class
Attributes:
remoteHostString
Methods:
CTOR String IP and int port
isConnected returning bool
Message class
Attributes:
date Date
theMessage String
Methods:
CTORString called theMessage
Getters for both attributes
Relationships
ConnectionMgr has a n relationship with BaseConnection
BaseConnection has a 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 getConnectionString argument returning BaseConnection
BaseConnection class abstract
a Attributes:
i unreadMessageslist of Message objects
b Methods:
i nextMessage returning Message object
ii sendMessageMessage argument
BluetoothConnection class
a Attributes:
i remoteHostString
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 CTORString called theMessage
ii Getters for both attributes
Relationships
a ConnectionMgr has a n relationship with BaseConnection
b BaseConnection has a n relationship with Message
c BluetoothConnection extends BaseConnection
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
