Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien 4.2 TrustPilot
logo-home
Examen

COS3711 Assignment 3 (COMPLETE ANSWERS) Semester 2025

Note
-
Vendu
-
Pages
27
Qualité
A+
Publié le
16-09-2025
Écrit en
2025/2026

COS3711 Assignment 3 (COMPLETE ANSWERS) Semester 2025 - DUE 2025; 100% TRUSTED Complete, trusted solutions and explanations.

Établissement
Cours










Oups ! Impossible de charger votre document. Réessayez ou contactez le support.

Livre connecté

École, étude et sujet

Établissement
Cours

Infos sur le Document

Publié le
16 septembre 2025
Nombre de pages
27
Écrit en
2025/2026
Type
Examen
Contenu
Questions et réponses

Sujets

Aperçu du contenu

,COS3711 Assignment 3 (COMPLETE ANSWERS)
Semester 2 2025 - DUE 2025; 100% TRUSTED
Complete, trusted solutions and explanations.

I’ll give you both: (A) a clear class/UML design for the assignment and
(B) a runnable C++/Qt project skeleton (CMake) with the key classes
and glue code you’ll need. I’ll include concrete headers/implementation
skeletons you can paste into files and extend.

I won’t overload with every single UI widget line-by-line (that would be
huge), but I provide the full architecture, model classes,
thread/serialization worker, TCP client & server, and a solid
QMainWindow skeleton wired into the models — enough to compile,
run and continue building UI logic.



1) High-level design / UML (textual)

Use these design patterns:

 Factory: to create Box/Cylinder and produce the correct code
(B/C).
 Memento: backup/restore of the unallocated container list (storing
cloned container state in memory).
 Model/View: QAbstractListModel or
QStringListModel for unallocated list;
QAbstractTableModel or QStandardItemModel for
server display.
 Worker Thread: SerializationWorker (QRunnable or
QObject moved to QThread) to build XML and send to TCP
server.
 Observer / Signals: model updates notify UI.

, UML (textual):
QObject
└─ Container (abstract, QObject)
+QString code
+double weight
+int volume()
+virtual void toXml(QXmlStreamWriter&) = 0
+virtual Container* clone() const = 0

Container <- Box (QObject)
+double length, breadth, height

Container <- Cylinder (QObject)
+double diameter, height

ContainerFactory
+static Container* createBox(...)
+static Container* createCylinder(...)

Pallet (QObject)
+int number
+QList<Container*> containers
+double totalWeight()
+int totalVolume()

PalletManager (QObject)
+QMap<int, Pallet*> pallets

UnallocatedListModel : QAbstractListModel
holds QList<Container*>

Memento
+QVector<QByteArray> serializedContainers

SerializationWorker : QObject
+signals: xmlReady(QString), finished(bool)
+slots: start()

TcpClientSender : uses QTcpSocket to send XML to 127.0.0.1:6164

ServerApp (separate project)
- QTcpServer, accepts incoming XML, parse with QXmlStreamReader,
fill QStandardItemModel (display in QTreeView)
2,44 €
Accéder à l'intégralité du document:

Garantie de satisfaction à 100%
Disponible immédiatement après paiement
En ligne et en PDF
Tu n'es attaché à rien

Faites connaissance avec le vendeur

Seller avatar
Les scores de réputation sont basés sur le nombre de documents qu'un vendeur a vendus contre paiement ainsi que sur les avis qu'il a reçu pour ces documents. Il y a trois niveaux: Bronze, Argent et Or. Plus la réputation est bonne, plus vous pouvez faire confiance sur la qualité du travail des vendeurs.
EstudyTube University of South Africa (Unisa)
S'abonner Vous devez être connecté afin de pouvoir suivre les étudiants ou les formations
Vendu
490
Membre depuis
2 année
Nombre de followers
176
Documents
826
Dernière vente
2 semaines de cela

If you need further assistance or have specific questions about the content, feel free to ask!

4,0

63 revues

5
35
4
6
3
14
2
3
1
5

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions