Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

UML Class Diagram for a Cable Company Software System, Lab Reports of Computer Science

Two uml exercise problems. The first problem asks to design a class diagram for a software system that handles installation requests for a cable company. The system services installation requests on a first-come first-serve basis and includes details about customers, types of service requested (digital or analog), and technicians. The second problem asks to define the uml class diagram for the given java code, which includes an interface electricaldev, a class remote, an abstract class tv implementing electricaldev, and a class highdeftv extending tv. The classes have methods and attributes related to their functionality.

Typology: Lab Reports

Pre 2010

Uploaded on 02/13/2009

koofers-user-cin-1
koofers-user-cin-1 🇺🇸

5

(2)

10 documents

1 / 1

Toggle sidebar

Related documents


Partial preview of the text

Download UML Class Diagram for a Cable Company Software System and more Lab Reports Computer Science in PDF only on Docsity! UML Exercises Problem 1 Given the following problem description, draw a UML class diagram representing the software system design you would design. Include as many details as possible. You need to design a software system that handles installation requests for a cable company. Installation requests are serviced on a first-come first-serve basis. An installation request is identified by an id number and the technician it is assigned to. An installation request includes information about a customer, and type of service requested (digital o analog). The cable company has two types of technicians: those that install analog systems and those installing digital ones. Installing an analog system requires connecting a cable to the back of the TV and setting up the TV; installing a digital system requires making a connection to a company digital box, and a separate connection to the TV. In addition to installing systems, any technician can generate a bill for a customer, and answer any general questions about services the company offers. Problem 2 Define the UML Class Diagram associated with the classes/interfaces below. public interface ElectricalDev { public double watts(); } public class Remote { private TV tv; public Remote(TV tv) { this.tv = tv; } public void changeChannel(int channel) { tv.changeChannel(channel);} } public abstract class TV implements ElectricalDev { private String brand; private int channelNum; public Remote remote = new Remote(this); public TV(String brand) {this.brand = brand; channelNum = 1;} public String toString() { return "Brand: " + brand + " Channel: " + channelNum; } public void changeChannel(int channelNum) { this.channelNum = channelNum; processAndDisplaySignal(); } protected abstract void processAndDisplaySignal(); } public class HighDefTV extends TV { private String digitalConverter; public HighDefTV(String brand, String digitalConverter) { super(brand); this.digitalConverter = digitalConverter; } public String toString() { return super.toString() + ", Converter: " + digitalConverter; } public void processAndDisplaySignal() {System.out.println("Process/Display HD signal."); } public double watts() { return 100; } }
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved