Ordinarily my response would be that these forums are not here to solve
homework problems from school course work. However, there are some
mitigating circumstances. It is curious the problem is clearly set in
the UK, but the model is solving it using a different language than
English. So something might be getting lost in translation. The problem
is also rather complex, suggesting it is more like a term project than
an ordinary homework problem. As such the design logic will be more
complicated. Most important, you already did the work of providing a
solution and are asking whether it will work rather than whether it is
the best one. So...
>
> I am trying to create a UML Diagram to answer a set of questions. As
> a beginner I used a software that is not for this (powerpoint) however
> I am interested on having a good structure.
> I pretend to import this excel file to posgre DB following the UML
> diagram.
I think we need a clarification of what problem you are trying to solve
and what the attachments are intended to represent. Do you mean that
the Excel data would already be in the DB and the software problem would
be to answer the questions in the text slide by reading the DB?
Or is the software problem to convert the Excel data into DB tables that
would easily allow answering the questions in the text slide? (The Excel
data is not in proper Normal Form for a direct 1:1 import into a DB;
referential attributes are missing.)
Or both?
These are quite different problems and would require different
solutions. So before critiquing your model, we need to know exactly what
the problem is.
In addition to these general questions, I have some detailed questions
about your model...
What is "The Geom"?
Why are there no relationships to the University and Motorway entities?
What is the "DfE code"? I suspect it will be a table key in the DB, in
which case it is important to understand its semantics.
What is a "Department" in the text slide? How are these related to DfE
Code / School Name and District in the Excel data?
What do the numbers under the course codes in the Students tab mean? The
tab title suggest that they represent some sort of "origin". But origin
of what?
I also have a couple of comments...
The last four questions on the text slide cannot be answered from the
data in the Excel spreadsheet. There are no distances, no mention of
Birmingham, no mention of M62, and no indication of previous student
registrations in the Excel data.
Your Students Origin By Course entity seems to be identified as as
association class. However, association classes qualify relationships,
not entities and there is no indication of what relationship it
qualifies. Were trying to reify a *:* association into two 1:* associations?
--
Life is the only flaw in an otherwise perfect nonexistence
-- Schopenhauer
Rene Descartes went into a bar. The bartender asked if he would like a drink. Descartes said, "I think not," and disappeared.
H. S. Lahman
H.la...@verizon.net
software blog: http://pathfinderpeople.blogs.com/hslahman/index.html
I sent this message a couple of days ago. I don't know where it went...
Ordinarily my response would be that these forums are not here to solve
homework problems from school course work. However, there are some
mitigating circumstances. It is curious the problem is clearly set in
the UK, but the model is solving it using a different language than
English. So something might be getting lost in translation. The problem
is also rather complex, suggesting it is more like a term project than
an ordinary homework problem. As such the design logic will be more
complicated. Most important, you already did the work of providing a
solution and are asking whether it will work rather than whether it is
the best one. So...
>
> I am trying to create a UML Diagram to answer a set of questions. As a
> beginner I used a software that is not for this (powerpoint) however I
> am interested on having a good structure.
> I pretend to import this excel file to posgre DB following the UML
> diagram.
I think we need a clarification of what problem you are trying to solve
--
You received this message because you are subscribed to the Google
Groups "UML Forum" group.
Public website: www.umlforum.com
To post to this group, send email to umlf...@googlegroups.com
To unsubscribe from this group, send email to
umlforum+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/umlforum?hl=en?hl=en
> However, as HS says,
I'm curious. You actually saw this? I sent that message twice and I
never got an echo. Has the forum suddenly decided not to echo messages
back to the sender?
the_Geom is the geometric attribute of the table, which will be used for spatial analysis and to answer the geographic/spatial questions.
The relationships to the university and motorway entities are spatial therefore I will use GIS queries for answering the� geographic/spatial questions�.
the dfe code it is just numeric - a number per entity (no repetition)the department (is on the top of the second excel sheet - "courses" ) the dfe code relates the sheet students with the sheet schools ... the district is extracted by spatial analysis (but yes I should include it in the diagram)
under the course codes are the number of students from a specific school, and which course �they are. that's why the table should be something like I put in the diagram.
�The last four questions on the text slide cannot be answered from the data in the Excel spreadsheet. There are no distances, no mention of Birmingham, no mention of M62, and no indication of previous student registrations in the Excel data.�I suppose that the previous should be the actual registrations in the excel data.
Your Students Origin By Course entity seems to be identified as as association class. However, association classes qualify relationships, not entities and there is no indication of what relationship it qualifies. Were trying to reify a *:* association into two 1:* associations?�Yes I am trying but not really sure if I am doing correctly. but like Simon Wright wrote: "(I think 0..* is right; what happens if there�s a new Course? a new School?)" The truth is that I had almost for sure the diagram was correct except for this class and its relationships - and it is here that I need help.
Responding to Kers...
the_Geom is the geometric attribute of the table, which will be used for spatial analysis and to answer the geographic/spatial questions.
The relationships to the university and motorway entities are spatial therefore I will use GIS queries for answering the geographic/spatial questions .
the dfe code it is just numeric - a number per entity (no repetition)the department (is on the top of the second excel sheet - "courses" ) the dfe code relates the sheet students with the sheet schools ... the district is extracted by spatial analysis (but yes I should include it in the diagram)
under the course codes are the number of students from a specific school, and which course they are. that's why the table should be something like I put in the diagram.
I still have a real problem with understanding what it is you want to model. This seems to be some hodge-podge of realized (e.g. GIS software), database, and some software you are trying to design. The boundaries between realized code, Data Modeling, and OOA/D application modeling are not clear.
For example, will the software you are designing generate GIS queries to some GIS DBMS system? Or will they be manually generated outside your software? Or will they be "canned" queries provided in external parametric data that will be submitted by your software?
However, if your only question is about the association object, then...
The last four questions on the text slide cannot be answered from the data in the Excel spreadsheet. There are no distances, no mention of Birmingham, no mention of M62, and no indication of previous student registrations in the Excel data. I suppose that the previous should be the actual registrations in the excel data.
Your Students Origin By Course entity seems to be identified as as association class. However, association classes qualify relationships, not entities and there is no indication of what relationship it qualifies. Were trying to reify a *:* association into two 1:* associations? Yes I am trying but not really sure if I am doing correctly. but like Simon Wright wrote: "(I think 0..* is right; what happens if there’s a new Course? a new School?)" The truth is that I had almost for sure the diagram was correct except for this class and its relationships - and it is here that I need help.
Unfortunately, the reification through [StudentsOriginByCourse] doesn't really solve the problem because you are still eleft with a *:* relationship to [CourseContacts]. Typically reification is used to reduce a single *:* association to two 1:* or 1:1 associations. Thus (ignoring conditionality)...
<pre>
[StudentsOriginByCourse]
|
* | *
[School] ------------------------------------- [CourseContacts]
might go to any of the following reifications:
1 1 1 *
[School] ----------- [StundentsOriginByCourse] --------------- [CourseContacts]
1 1 * 1
[School] ----------- [StundentsOriginByCourse] --------------- [CourseContacts]
1 * 1 1
[School] ----------- [StundentsOriginByCourse] --------------- [CourseContacts]
1 * 1 *
[School] ----------- [StundentsOriginByCourse] --------------- [CourseContacts]
1 * * 1
[School] ----------- [StundentsOriginByCourse] --------------- [CourseContacts]
* 1 1 1
[School] ----------- [StundentsOriginByCourse] --------------- [CourseContacts]
* 1 * 1
[School] ----------- [StundentsOriginByCourse] --------------- [CourseContacts]
* 1 1 *
[School] ----------- [StundentsOriginByCourse] --------------- [CourseContacts]
</pre>
In practice most of these will make no sense in the problem space for most *:* situations. The 1st, 4th, and 5th tend to be the most common. In your case I would guess the 1st would be appropriate as each school would likely have its own collection of courses (i.e., its own syllabus of offered courses).
However, that would not work if the same courses are offered by different schools. Then the 5th reification can work where each school has lots of courses and each course is offered by multiple schools. The problem with that is the semantics of [StudentsOriginsByCourse]. Essentially this says that the students taking the courses are various schools define the relationship. The problem with that is that students can take more than one course and you are back to a *:* association on the right side.
Now there is very clearly a relationship in the problem space between schools and courses and probably either the 1st or 5th reification pattern can resolve it. But for that to be true, the association entity needs a semantics that is not about student participation. Instead, its semantics needs to be something like [SchoolSyllabus]. Then if you want to model where students fit in, you would need another [Student] entity with its own set of peer relationships to [School] and [CourseContact].
While we are on problem space semantics, a contact for a course is probably a different entity in the problem space than the course itself. Courses are related to schools to schools via syllabus. Students are related to courses via registration. Contacts are related to courses via faculty assignments. IOW, you need to model the problem space, not the solution. Once you have the problem space entities and relationships modeled in static structure, then you can worry about how their behaviors play together to solve the problem in hand.
-- Life is the only flaw in an otherwise perfect nonexistence -- Schopenhauer Rene Descartes went into a bar. The bartender asked if he would like a drink. Descartes said, "I think not," and disappeared. H. S. Lahman H.la...@verizon.net software blog: http://pathfinderpeople.blogs.com/hslahman/index.html
--
You received this message because you are subscribed to the Google
Groups "UML Forum" group.
Public website: www.umlforum.com
To post to this group, send email to umlf...@googlegroups.com
To unsubscribe from this group, send email to
> To H.S.: My membership of this group is set to �no email�, and I get
> notification of postings via RSS
> <feed://groups.google.com/group/umlforum/feed/rss_v2_0_msgs.xml>; both
> of your responses to MARKERPED showed up there and are visible in the
> new Google Groups view.
OK, thanks. At least they seem to be getting posted to the forum. I only
use the email connection and apparently Google has stopped echoing to
the sender. I guess I'll just have to BCC myself.
Responding to Wright...
To H.S.: My membership of this group is set to ‘no email’, and I get notification of postings via RSS <feed://groups.google.com/group/umlforum/feed/rss_v2_0_msgs.xml>; both of your responses to MARKERPED showed up there and are visible in the new Google Groups view.
OK, thanks. At least they seem to be getting posted to the forum. I only use the email connection and apparently Google has stopped echoing to the sender. I guess I'll just have to BCC myself.
--
Life is the only flaw in an otherwise perfect nonexistence
-- Schopenhauer
Rene Descartes went into a bar. The bartender asked if he would like a drink. Descartes said, "I think not," and disappeared.
H. S. Lahman
H.la...@verizon.net
software blog: http://pathfinderpeople.blogs.com/hslahman/index.html
--
You received this message because you are subscribed to the Google
Groups "UML Forum" group.
Public website: www.umlforum.com
To post to this group, send email to umlf...@googlegroups.com
To unsubscribe from this group, send email to