• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Two questions before submitting.

 
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ranchers:
My submitting jar file contains classes folder which is not required in the instruction. Does it matter?
Could you tell me the link to submit? It has been over a year since I fetch the assignment, so I forgot it.
 
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Zhixiong Pan:
Hi ranchers:
My submitting jar file contains classes folder which is not required in the instruction. Does it matter?
Could you tell me the link to submit? It has been over a year since I fetch the assignment, so I forgot it.



The link is https://www.certmanager.net/sun_assignment/ to submit the assignment.I would take out the classes folder as it is best to keep the submission jar as small possible to ensure that there are no uploading hitches and since the classes are already zipped up in a runme.jar file there is no need for the duplicate folder.

Why is the classes folder in the jar, do you have an ant script that automatically puts it into the submission jar file?

Regards,
Mark.
 
Zhixiong Pan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mark,
I think now you are online, so I can "talk" with you this time.
In my ant file, I have excluded the classes folder. But there is still a folder called meta-inf. Does that matter?
I have heard you got an auto failure(I am so sorry) since the version.txt, but I don't think it is a common ignorance, so hope I will not be trapped in that.
 
Mark Smyth
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Zhixiong Pan:
Hi Mark,
I think now you are online, so I can "talk" with you this time.
In my ant file, I have excluded the classes folder. But there is still a folder called meta-inf. Does that matter?
I have heard you got an auto failure(I am so sorry) since the version.txt, but I don't think it is a common ignorance, so hope I will not be trapped in that.



Hi,
The META-INF folder is created by the jar tool so it is perfectly normal to have this in the jar file. Still waiting for my results the assignment is currently being regraded so hopefully I will have my results before too long. Are you submitting today? Best of luck if you are I am sure you will get on great!

Mark.
 
Zhixiong Pan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mark,
Actually I decide to submit today of your time. The least uncertain thing is my user guide doc which someone has told my previous release was too simple. I list it here and welcome your scan.

Install and Run

1)Run the server:
Go to the runme.jar directory in command window and type command "java -jar runme.jar server". Later a server frame
will appear. On that frame, press the "configure" button and a dialog will pop out. On that dialog, type server port and
db file directory and quit with "Ok". At last, start the server by press "start server" button.
While starting the server, if property "Server Port" is absent or if is not a number, a configuration dialog will be popped
to let you re-configure and the server will re-try to start. If property "Server DB File" is absent or incorrect file,
then a configuration dialog will be popped to let you re-configure and the current application ends.

2)Run network client:
Double click the "runme.jar" file.
While starting the network client, if property "Client Port" is absent or if is not a number or if it "Server IP" can't
connect to the server or if server is not started, a configuration dialog will be popped to let you re-configure and the current
application ends. After that you can re-start the network client.
After you load into "Room Booking System" interface, if you want to change to another server, just go to the menu and click on
"File" and choose "Configure" in the drag-down list.

3)Run alone client:
Go to the runme.jar directory in command window and type command "java -jar runme.jar alone".
While starting the alone client, if property "Alone DB File" is absent or incorrect file, then a configuration dialog will be
popped to let you re-configure and the current application ends. After that you can re-start the alone client.
After you load into "Room Booking System" interface, if you want to change to another db file, just go to the menu and click on
"File" and choose "Configure" in the drag-down list.


How to Use This Program

The "Room Booking System" interface has two major parts. The above part is an operational interface,
and the below one can be called "Room Displaying Interface".


1) "Room Displaying Interface" displays the room information such as "name" "location" and so on,
which initially(right after the user login) display all rooms' information.

2) The operational interface can be divided into three regions from left to right.
a. The left region is called "Filter Results" which is responsible for filtering the room in
"Room Displaying Interface" which user don't want to see. There are two check boxes named
"Only unbooked rooms" and "Only rooms available". Checking "Only unbooked rooms" will filter
rooms that has been booked, while checking "Only rooms available"
only rooms whose "data" information are 0 to 48 hours after 12:00Pm of the current day will
be remained and the others be filtered. If both check boxes are signed, "Room Displaying
Interface" will display unbooked rooms whose "data" information are 0 to 48 hours after
12:00Pm of the current day. Cancel the checking of any check box will recover the
"Room Displaying Interface" to previous state.

b. The middle region is called "Search Criteria" which is responsible for searching specific
rooms. The "Hotel name" combo box stores all names of existed rooms, and the "Hotel location"
combo box's contents are all locations of these rooms. The check box of "Match either Name
or City" is to decide whether both of "Hotel name" and "Hotel location" conditions should be
satisfied(if unchecked) or just any one condition should be satisfied(if checked).
If let either combo box be blank, that means such a condition match all cases,
or doing searching without such a condition, in another word.

c. The right region is called "Book Room" which is responsible for booking a room which is selected
and highlighted in the "Room Displaying Interface". The legal sequence to book a room is as
following: first choose an unbooked room(room's "owner" is blank), then input your ID which
should not be longer than 8 characters in the text area of "Customer ID", and finally press the
"Book" button. Only one room can be booked per once. So if more then one rooms have been
selected when pressing "Book" button, only the room whose position is nearest to the top of
"Room Displaying Interface" will be booked. If your booking room already has an "owner" or is not
time available, the system will pop a massage warning "Can not book that room". If such a massage
still popped while your booking room is blank and time available, it indicates that another one was
also booking that room at the same timeas you were and faster then you. If your ID extends the
length of 8 characters, the system will pop massage of "Your ID cant be longer then 8 characters!
Please enter again!". If you had successfully booked a room, the system will pop massage as
"You have successfully booked".


Structure of Package

suncertify.db
suncertify.business
suncertify.client
suncertify.server

 
Mark Smyth
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, That seems to have covered the basics of starting the application and using it, I must admit mine was a little bit longer but then I am prone to writiing two much

My sections were as follows:


 
You are HERE! The other map is obviously wrong. Better confirm with this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic