Here is the break down General Consideration 57/58 Documentation 20/20 GUI 21/24 Server 51/53 As for my design well it was really simple 1. Did not extend Data 2. Did not keep track of any client IDs for locks 3. Did not do anything about possible stale locks 4. Used RMI 5. Gui was simple, 2 JTextboxes a JToolbar and menus Thats all I can think of now, I am to excited, if anyone has any questions I will be happy to answer. Thanks to everyone wha participates in this group, it was really invaluable Trevor
Congrates Dear!! some questions if u dont mind. How many panels did u use all togather in GUI ? did u used box layout etc. ? which layout did u used ? How many pages of "design choice" papers. thnaks in advance reena K.
posted 18 years ago
Siddharth I actuall downloaded the assignment about 7 monts ago, but was so busy I went a couple of months without even looking at it. If I was to estimate I would say maybe two - three weeks of work to get a final polished product My design, well without going into deep detail I used a separate class as Lockmanager and used RMI for server communication. I had a common interface in which a RemoteInterface was derived from it. THis gave me the advantage of coding to one interface on the client side. And I used the AdapterPattern to give Data its Remote functionality. I was never really bogged down but the locking is by far the trickiest. Reena I have no idea on how many panels I used but I did use boxlayout to organize my GUI. This worked for me but some other may work for your design. My design document was not that long, just a couple of pages. It does not need to be in excrutiating detail, nor does it need every decision you made. Just make sure include the majors like, RMI or Sockets, Extend or modify, Searching Algoritim etc. Trevor
Congratulations, good score!! ------------------ Marco Barenkamp ____________________________________________ L M I N T E R N E T S E R V I C E S AG Senior Trainer & Architect, BEA Certified Enterprise Developer Sun Certified Programmer for the Java2 Platform Sun Certified Web Component Developer for the Java2 Platform Sun Certified Developer for the Java 2 Platform Sun Certified Enterprise Architect for the Java 2 Platform Enterprise Edition (PI)
Marco Barenkamp<br />_ _ _ _ _ ________________________ _ _ _ _ _ <br />L M I N T E R N E T S E R V I C E S AG<br /> <br />Head of Software Development<br /> <br /> <br />BEA Certified Enterprise Developer<br />Sun Certified Programmer for the Java2 Platform<br />Sun Certified Web Component Developer for the Java2 Platform<br />Sun Certified Developer for the Java 2 Platform <br />Sun Certified Business Component Developer for the Java 2 Platform <br />Sun Certified Enterprise Architect for the Java 2 Platform Enterprise Edition<br /> <br />LMIS AG
Can u tell us, on which criterias you have implemented criteriaFind ? This might be stupidest Qn to ask, since I am very much confused in Design Patterns. I hardly know patterns. So can you please elaborate, the way Adapter pattern used at server side ? I'll just explain you what I am doing, DataServerLocal extends Data - Responsible for Standalone operation DataServerRemote extends Data implements RemoteInterface - Responsible for Distributed operation These 2 classses individually have diff methods, but share functions from Data. I feel whatever I am doing is adapter, since I feel I am adapting functionality of Data, but ur implementation is diff, can u please elaborate ? waiting earnestly ! [This message has been edited by Shivaji Bhosale (edited November 24, 2001).]
Trevor, How did you indicate to the program if it is to be run in local or remote mode ?? Did you use command line parameter for mode ? thanks
posted 18 years ago
Rasika I determined local or remote mode by the number of command line arguments. One argument(db location) was local remote and two arguments (serverip and port) remote mode Shivaji I no pattern expert either, but what you are doing is definatley different from me. I tried to program to an Interface as a result I had an interface DataInterface that declared all the public methods of Data. I then made Data implement this interface. That essentially takes care of non-networked mode. For Remote I made an interface RemoteDataInterface that extended both DataInterface and Remote. I Then made my RemoteAdapterClass implement the RemoteDataInterface. Now for the adapting part. I actually put no code in my RemoteDataAdapter class. It only took an instance of Data as an argument so all methods actually called an instance of Data but it has been adapted to be remote without actually changing data to include remote code. if you want more on design patterns I found the following pdf quite useful <url>www.patterndepot.com/put/8/JavaPatterns.htm</url> Trevor
Don't destroy the earth! That's where I keep all my stuff! Including this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!