I plan to have two jar files, one is server.jar, and the other is the client.jar. And I include db package in both client.jar and server.jar. I also include the stub classes in client.jar. So in non-networked mode, only client.jar is required to install.
But I am not sure whether my approach will cause deduction of marks. Since some of the files are redundant when working in networked mode, such as LockManager. And in non-networked mode, server stubs are also redundant.
What's the suggestion from you guys?
The requirements state that
You may use Jar files to contain groups of elements of your submission as you deem appropriate, for example, to support execution of your programs.
So from that you are not required to make a client.jar or a server.jar, though i found this to be a nice way to package them and easy for the assesor to run them. But as long as everything works fine and you can explain how to run everything you should be ok.
You must though submit the whole assignment as one single Jar file for submission.
I suddenly got another doubt.
Can I assume the assessor will not change the database file nor move it to another directory? Now I am placing db.db in both client.jar and server.jar and I access the database file with hardcoded directory. And I also hardcoded the column names in client GUI. But I do allow the user to change the name of database file.
What's your comments?
Can I assume the assessor will not change the database file nor move it to another directory?
I went under that assumption, you must though specify in your README.txt the location of the db.db file. I had one copy in my main directory that the client.jar and server.jar both used. I did not allow the user to specify the location of the database file, but looking back I would of changed that. Maybe thats where I lost a point
I also hardcoded the column names. In my design document I did mention this could be an area for a future enhancement. Overall I tried to keep things as simple as possible while sticking to the specs.
Thanks for your patience.
Just one last question.
I've tested my program on the LAN network. But I have no idea how it will funtions over the Internet? Do I have a means to test it? And when I execute my program, I do not need to set classpath nor the port number. Am I missing any cases here?
And can I use MS word to do the documentation?
I only tested my assignment on a single computer and nver tried it over the interent. I did not have to set the classpath and I had the port number(1099 the default i used) hardcoded into myu server.
As far as the documentation MS Word format is not allowed at least thats what they say for the README.txt. The specs read:
You must create a single text file(plain ASCII; word processor formats are unacceptable) called README.txt ...
I would assume that would apply to the design choices document as well. My user documentation was html format. Then you have your documentation for all you clasees which will be created using Javdoc.
Hope that clears things up, feel free to ask any more questions. I'm glad to help.