AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

OOP question. Are these Objects right?

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help
View previous topic :: View next topic  
Author Message
Bill_Richie
Guest





PostPosted: Sat Nov 27, 2004 1:12 pm    Post subject: OOP question. Are these Objects right? Reply with quote



Heres the question that i identified them from (i am new to OOP), then
after the question are what i think are the objects, if anyone could give
me any pointers as to if ive messed anything up badly:

A software system is required to control a security system. The system
consists of an entry panel at each entrance, both external and room and
corridors inside. The panels will be a mixture of a numeric keypad with an
LED display and a card insert or a swipe card. Each panel controls entry
through an electronically controlled door. A local controller can control
up to ten entrances. A centralised controller maintains lists of users and
the rooms (or zones) they currently occupy. This information is requested
the local controller or periodically if an authorised member of staff
requests it.

Both the local and central controllers should be able to display who is in
each room (or zone) at any particular time. For safety reasons there should
be an override that will unlock all doors in the event of an emergency.
Local controller overrides will unlock only the doors it controls, the
central controller override will unlock all doors in the building. The
system will receive information from the fire detection system and act
accordingly. The system should automatically inform the emergency services
(you can assume that the emergency services are capable of receiving the
data)

Objects:
Security system
Entry Panel
Entrance
Panels
Local controller
Centralised controller
users
Override
Fire detection system
Swipe card
Keypad

If anyone could tell me if i have done anything majorily wrong or missed
anything really important off, thanks!

Back to top
Joe
Guest





PostPosted: Sat Nov 27, 2004 4:59 pm    Post subject: Re: OOP question. Are these Objects right? Reply with quote



In article
<b146d08a8126ec28882e31faab2bb84b (AT) localhost (DOT) talkaboutprogramming.com>,
[email]Bill34521 (AT) hotmail (DOT) com[/email] says...
Quote:
If anyone could tell me if i have done anything majorily wrong or missed
anything really important off, thanks!



Looks like a good first pass. Override sounds more like an operation
than a class, to me.

Back to top
Bill_Richie
Guest





PostPosted: Sat Nov 27, 2004 5:39 pm    Post subject: Re: OOP question. Are these Objects right? Reply with quote



So would each one of these objects have there own class? or would several
be grouped up to form a class?

Back to top
Joe
Guest





PostPosted: Sat Nov 27, 2004 6:36 pm    Post subject: Re: OOP question. Are these Objects right? Reply with quote

In article <415c65e18349bd7926a15e88afb83096
@localhost.talkaboutprogramming.com>, [email]Bill34521 (AT) hotmail (DOT) com[/email] says...
Quote:
So would each one of these objects have there own class? or would several
be grouped up to form a class?



Mostly I'd say each will have their own class, but their might be some
exceptions. The two different types of controllers indicate that their
might be some shared functionality between the two that can be contained
in a base class.

Back to top
Bill_Richie
Guest





PostPosted: Sat Nov 27, 2004 6:55 pm    Post subject: Re: OOP question. Are these Objects right? Reply with quote

Thanks for your help :)

Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.