Hi,This is my problem which my work want me to solve:
This system is intended to provide the school timetabler with information to support his/her timetabling activities. Please note it is not expected to schedule classes. The information required are the programmes, the core and option modules for each programme, the activities (lecture, seminar, lab etc) connected with each module, the available rooms and their type and the module leaders. Some level 3 and masters modules are run together. The system should tell the user when this is the case. Module and module leaders in the system may have some constraints attached. For example “Staff member X does not teach on Tuesdays” or “Module Y must have 6th floor labs”. Information required includes the number of credits for each module, whether it is one semester long or all year long, which semester it runs and which student sets take the module (either as core or option).Room information should include its size (how many students it takes), it’s type, its condition (i.e. walls falling down, freezing cold, noisy) and its resources (internet connection, overhead projector white/black board, amplification system). Programme information should include the level, name of the programme and the associated modules.
The output should be text based. No graphical interface is required. You may use any libray classes you feel necessary. It is recommended you create a text file for data input (rather than typing in each time you test the program). You do not need to test the system with complete data from the school. Just use one or two programmes. You can make these up. They do not have to be an accurate reflection of the schools programmes and modules.
Examples of use
1: Input: program name Output: list of core and option modules.
2: Input: module name Output: module leader, activities, credits, when run, constraints
3: Input: activity name Output: room(s)
4: Input room number Output size, condition, available resources
5: Input module leader Output constraints
This is what my work want me to do:
(i)Examine the Timetable Information System System problem and, using object-oriented principles, identify the main objects and classes within it.
(ii)Develop a UML class diagram showing classes, relationships, attributes and methods.
(iii)Develop a well-commented Java program to implement the design, using appropriate class structures and hierarchies.
(iv)Test your implementation with suitable test data.
(v)Write a short report (about 1 A4 side) critically appraising the methods used for design and implementation.
I have to also use a software called ArgoUML & Blue J
I need help with the first part as i am really stuck
Thanks
26 4805
I need help with the first part as i am really stuck
Even inserting a few empty lines here and there in that blob of text might help: i.e.
try to describe one requirement in one paragraph of text.
kind regards,
Jos
Hi I need help with this part please:
(i)Examine the Timetable Information System System problem and, using object-oriented principles, identify the main objects and classes within it.
Thanks
Hi I need help with this part please:
(i)Examine the Timetable Information System System problem and, using object-oriented principles, identify the main objects and classes within it.
Thanks
Read the text and try to understand it; next mark the nouns in those sentences;
they are most likely the classes in your Java program. Next mark the verbs; they
are most likely the methods in those classes. Try that first.
kind regards,
Jos
Hi,
Could you give me an example or two then i can have a go and let you know if i am on the right track
Thanks
Hi can someone help me becuase i have read the text and i am still stuck on the first question could someone give me a little help
Thanks
Hi Jos could you help me because i have done what you said and still i dont get it. Could you possibly help me please
Thanks
Hi Jos could you help me because i have done what you said and still i dont get it. Could you possibly help me please
Thanks
Have you written down the nouns from that little story and the verbs that come with them?
The nouns are the classes in your system and the verbs indicate what the methods
in those classes are supposed to be.
kind regards,
Jos
Hi Jos,
Could you give me an example of each from my problem, so i know what i am looking for
Thanks
Hi for my nouns i came up with:
Program
Module
Room
Resources
Activities
Program Leader
Hi Jos,
Could you give me an example of each from my problem, so i know what i am looking for
Thanks
Ok, here's the first part of the text: " The information required are the programmes, the core and option modules
for each programme, the activities (lecture, seminar, lab etc) connected with
each module"
I can find the following relevant nouns here: Programme, Module, Activity;
also the following verbs are important: connected.
So a Programme *has a* Module (zero or more); a Module *has a* Activity.
An Activity *is a* lectures, seminars, labs etc.
The nouns and verbs are first attempts for classes: -
public class Programme {
-
private List<Module> modules= new ArrayList<Module>();
-
...
-
}
-
public class Module {
-
private List<Activity>activities= new ArrayList<Activity>();
-
public void connect(Activity activity) { ... }
-
...
-
}
-
public abstract class Activity { ... }
-
public class Lecture extends Activity { ... }
-
public class Seminar extends Activity { ... }
-
public class Lab extends Activity { ... }
-
If you read that text closely enough you'll find more potential methods and classes.
kind regards,
Jos
Are the other nouns i found correct or are there more? nouns than the ones i have listed?
Are the other nouns i found correct or are there more? nouns than the ones i have listed?
As far as I can see those nouns are fine. Simply give it a try; that nouns/verbs
trick gives you a first class population almost for free (don't forget the verbs!).
When you start designing your classes, based on those nouns and verbs (those
are the methods) you find out soon enough which of the nouns and/or verbs are
redundant or need some change.
kind regards,
Jos
OK Thanks Alot for your help Jos, i will proberly ask you at a later stage for some help if i get stuck. So are my nouns and verbs fine then? Can you find any more?
Thanks Again
OK Thanks Alot for your help Jos, i will proberly ask you at a later stage for some help if i get stuck. So are my nouns and verbs fine then? Can you find any more?
Thanks Again
Don't be too worried about that; i.e. you'll find them later when a deficiency in your
class forest doesn't do the job. Look at those sentences as in:
"Actor acts_on Actee".
You're interested in the Actor and Actee (they're the potential classes) and the
verb "acts_on" is a method in the Actor class that acts on an Actee (if present).
Don't overcomplicate your design; there's no need to add every little noun or
verb in your design; you can add them later if needed.
kind regards,
Jos
Ok Thanks
Can you help me with the UML Diagram
Thanks
Ok Thanks
Can you help me with the UML Diagram
Thanks
A UML class diagram is just another representation of your class design. You
can do that yourself because it's *your* design after all; the rest is just a few
rectangles representing your classes (and interfaces) and a bunch of funny arrows.
kind regards,
Jos
Hi I was also informed that the problem has Inheritance in it but i am unsure of what that means. Coudl you give me an example. Ive also been told that i must list the attributes and methods (i.e. operations) associated with these objects. Could you help with this please.
Thanks
Hi I was also informed that the problem has Inheritance in it but i am unsure of what that means. Coudl you give me an example. Ive also been told that i must list the attributes and methods (i.e. operations) associated with these objects. Could you help with this please.
Thanks
I already did: reread my reply #11 and pay close attention to the Activity class
and its subclasses. You'll find the methods by paying close attention to the verbs
in the assignment text.
kind regards,
Jos
Is this correct
Objects Classes
Program Core Module & Option Module
Module Module Leader, Activities, Credits, Semester, Constraints
Activity Lecture, Seminar, Lab
Room Size, Seating Capacity, Condition, Resources Available
Module Leader Constraints
Thanks
Is this correct
I really would't know. There's a fun little way to find out: I call it the CRC game;
other, more serious folks don't call it a game but 'exercising the classes'. CRC
stands for Classes, Responsibilities, Collaboration.
Try to come up with a 'use case' scenario that should be 'solved' or 'handled'
by your classes. Try to play that little game using those classes. If there doesn't
exist a class that can do part of the game, you're missing classes or you should
modify at least one of the classes. At least one of the classes should be (partially)
responsible for part of the play (use case) and classes should (must?) communicate,
i.e. collaborate in order to get the job done.
If you can successfully complete the entire game your classes and method are
fine for at least that particular use case. Otherwise you have to add/modify/remove
classes and or methods; then play the game again.
Playing the game with more than one person can be fun. Each person should
assume the 'role' of one or more classes and people should communicate back
and forth, simulating the method calls that are supposed to do the job.
kind regards,
Jos
Is there any more object or classes in the text other than the ones i have found
Thanks
Is there any more object or classes in the text other than the ones i have found
Thanks
Are the classes you have found so far sufficient to do the job? If not, everything
is fine (sofar) if not, think of a 'thing' (or more than one) that can complete your
design so they can fulfill the task.
kind regards,
Jos
How are these:
Object:
• Programme Name, Core Module, Option Module
• Module
• Activity
• Room
• Module Leader
Classes:
• Activity
• Programme
• Module
• Room
• Module Leader
• Staff Member
Hi,
Ive done my object and classes and have done a uml diagram can someone help me with the java program?
Hi,
Ive done my object and classes and have done a uml diagram can someone help me with the java program?
Just go on to writing the classes then. You should have all that you need for them by now anyway.
Can someone give me a little help with starting the UML Diagram
Thanks
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Chris Rodgerson |
last post by:
Hi all,
I have a page with the date being passed
in(calendar_week.php?date=6-4-2005), but what i want to do is display a
timetable for the week that date falls on, from 8am-8pm in half-hour...
|
by: richard |
last post by:
The Open Source Developers' Conference is on next week (Dec 1 - 3) in
Melbourne (Australia) and the conference timetable is now available:
<http://www.osdc.com.au/news/timetable.html>
As you can...
|
by: public heath vb developer |
last post by:
We have a solution with 29 projects including a main menu and 28 dlls. One of the projects (Project B) was created by copying an existing project (Project A), making changes including the assembly...
|
by: MA |
last post by:
Hi all!
Im going to develop a timetable with c# and asp.net. Does anyone knows of
any good site where i can find information? I have googled for a while, but
cant find anything.
/Marre
|
by: Rudy Ray Moore |
last post by:
How can I modify the project build order of a multi-project workspace under
"Visual Studio .net 2003 7.1 c++"?
I tried to modify the .sln by hand to influence the build order, but it
didn't seem...
|
by: Paul Boddie |
last post by:
EuroPython is the European Python and Zope Conference, taking place
this year in Vilnius, Lithuania from Monday 9th July to Wednesday 11th
July.
The last day of EuroPython's early registration...
|
by: chaos |
last post by:
HELLO !!!
i doing timetable system using php. i now stuck in part whereby showing the
change between Original TimeTable and Proposed TimeTable in chart so that the user will know the change he...
|
by: smoothkriminal1 |
last post by:
the question is u read timetable of 40 students from file n den find da slot where all fourty students dnt hve clash...if any....
may b i ll be able to make clash logic but i m even just nt...
|
by: smoothkriminal1 |
last post by:
Write a Code that will pick timetable of 40 students from file using linklist n than find a slot where all the students dont have any class.
file can be of any format
Student can maximum take 6...
|
by: MeoLessi9 |
last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: Aftab Ahmad |
last post by:
Hello Experts!
I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
| |