<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000'><font face="arial, helvetica, sans-serif"><span style="font-size: 12pt;">Yes a dynabook may be linked to several schools. </span></font><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 12pt;">A course only takes place in a given school.</div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 12pt;"><br></div><div style=""><font face="arial, helvetica, sans-serif"><span style="font-size: 12pt;">Yes some diagrams and more details on the project</span></font><br><font face="arial, helvetica, sans-serif">https://docs.google.com/document/d/1_67XzOLi78DWaf-deZsEMmhINhdSX3Tf6iy_SK88AYY/edit?usp=sharing</font><br><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 12pt;"><span name="x"></span><br></div><br><hr id="zwchr" style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 12pt;"><blockquote style="color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-size: 12pt; border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; font-weight: normal; font-style: normal; text-decoration: none;">May one ask some questions about the requirements?<br><br>A Dynabook may be linked to more than one school (or university)?<br>Is it possible that one course can belong to more than one school?<br><br>Is there a datamodel/ER-Diagram/UML-Object/Class-Diagram?<br><br><br>On 6/21/23 10:05 AM, H. Fernandes via Cuis-dev wrote:<br>> <br>> Hi folks,<br>> <br>> <br>> <br>> I have a design question with circular reference I want to avoid, and I am investigating options. Here is the situation:<br>> <br>> <br>> <br>> - a Dynabook object (likely a singleton) with a schools attribute<br>> - each School instance has a timeSlots attribute , a collection of TimeSlot describes the time division of a school day<br>> - deep in the objects tree, Dynabook>school>course> courseHours describe the time schedulle of a Course<br>> <br>> <br>> The courseHours GUI editor needs to refer to the timeSlots collection in the parent School instance. I wonder how to do that properly.<br>What will this editor be editing?<br>The Dynabook's course hours, the school's course hours, ...?<br>> <br>> <br>> <br>> There are possibly several School instances (a person may teach in several schools with different time slot).<br>> <br>> <br>> <br>> I though of several options:<br>> - to have a school attribute in the Course instance, I don't like the idea<br>IHMO. this makes sense: I can remember cases of German gymnasiums were a<br>course was held at one school, but was on the curriculum of more than<br>one gymnasium. Pupils from two gymnasiums attended the course.<br>Same story for German university lectures. Therefore there should<br>be a schools (plural) attribute.<br><br>> <br>> - to have a schoolContext attribute in the Dynabook object. The attribute refers to the School instance in use. I am afraid it could be out of synch easily.<br>There should be more than school. It is possible to study at<br>more than one university at the same time.<br>I studied Computer Science at TUM (Technische Universität München) and <br>Theoretical Linguistics at LMU (Ludwig-Maximilians-Universität München).<br>> <br>> - to pass in reference the School instance to intermediate GUI methods, a bit tedious<br>> - to search for the School parent instance of a given attribute in the tree by interogating the Dynabook instance. Should work well, may be overkill.<br>> <br>> <br>> Options? Opinions?<br>If in doubt design and implement a simulation of the reality.<br>Of course this will become complicated with lots of circular references.<br><br>(I can provide anecdotal reference about how complicate this can become)<br><br>> <br>> <br>> Thanks<br>> <br>> <br>> Hilaire<br>> <br>> <br><br>You are welcome!<br><br><br>Best Reagrds,<br><br>Gerald<br></blockquote><br></div></div></body></html>