473,320 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Timetable Project

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
Oct 16 '07 #1
26 4809
JosAH
11,448 Expert 8TB
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
Oct 16 '07 #2
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
Oct 16 '07 #3
JosAH
11,448 Expert 8TB
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
Oct 16 '07 #4
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
Oct 16 '07 #5
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
Oct 21 '07 #6
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
Oct 23 '07 #7
JosAH
11,448 Expert 8TB
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
Oct 23 '07 #8
Hi Jos,

Could you give me an example of each from my problem, so i know what i am looking for

Thanks
Oct 23 '07 #9
Hi for my nouns i came up with:

Program
Module
Room
Resources
Activities
Program Leader
Oct 23 '07 #10
JosAH
11,448 Expert 8TB
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:

Expand|Select|Wrap|Line Numbers
  1. public class Programme {
  2.    private List<Module> modules= new ArrayList<Module>();
  3.    ...
  4. }
  5. public class Module {
  6.    private List<Activity>activities= new ArrayList<Activity>();
  7.    public void connect(Activity activity) { ... }
  8.    ...
  9. }
  10. public abstract class Activity { ... }
  11. public class Lecture extends Activity { ... }
  12. public class Seminar extends Activity { ... }
  13. public class Lab extends Activity { ... }
  14.  
If you read that text closely enough you'll find more potential methods and classes.

kind regards,

Jos
Oct 23 '07 #11
Are the other nouns i found correct or are there more? nouns than the ones i have listed?
Oct 23 '07 #12
JosAH
11,448 Expert 8TB
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
Oct 23 '07 #13
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
Oct 23 '07 #14
JosAH
11,448 Expert 8TB
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
Oct 23 '07 #15
Ok Thanks

Can you help me with the UML Diagram

Thanks
Oct 23 '07 #16
JosAH
11,448 Expert 8TB
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
Oct 23 '07 #17
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
Oct 24 '07 #18
JosAH
11,448 Expert 8TB
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
Oct 24 '07 #19
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
Oct 25 '07 #20
JosAH
11,448 Expert 8TB
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
Oct 25 '07 #21
Is there any more object or classes in the text other than the ones i have found

Thanks
Oct 28 '07 #22
JosAH
11,448 Expert 8TB
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
Oct 28 '07 #23
How are these:

Object:

• Programme Name, Core Module, Option Module
• Module
• Activity
• Room
• Module Leader

Classes:
• Activity
• Programme
• Module
• Room
• Module Leader
• Staff Member
Oct 31 '07 #24
Hi,

Ive done my object and classes and have done a uml diagram can someone help me with the java program?
Nov 11 '07 #25
r035198x
13,262 8TB
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.
Nov 12 '07 #26
Can someone give me a little help with starting the UML Diagram

Thanks
Nov 26 '07 #27

Sign in to post your reply or Sign up for a free account.

Similar topics

0
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...
0
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...
0
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...
6
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
2
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...
0
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...
17
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...
0
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...
1
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...
0
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
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...
1
isladogs
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...
0
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...
0
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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.