469,327 Members | 1,262 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,327 developers. It's quick & easy.

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 4338
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

Post your reply

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

Similar topics

reply views Thread by Chris Rodgerson | last post: by
reply views Thread by richard | last post: by
reply views Thread by public heath vb developer | last post: by
6 posts views Thread by MA | last post: by
2 posts views Thread by Rudy Ray Moore | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by Purva khokhar | last post: by
reply views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.