Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

4.

1 CLASS DIAGRAM
Class diagram describes the structure of a system by showing the system's classes, their attributes, operations (or methods), and the relationships among the classes.

Figure 1: Class Diagram

4.3 CLASS DESCRIPTION


Following are the description of the classes used in the application: InitialDataLoadImpl Class: This class is used to return the initial data required for loading the application or when the data is changed in the home page. EquipmentSpecImpl Class: This class gives the equipment specification for the Roll trailer type equipments. GroupImpl Class: This class is used to get the Group detail of different equipments. OnWaterStockImpl Class: This class is used for getting the detail of all the equipments that are on water and destined to the selected port.

CategoryImpl Class: This class is used to divide the equipment under different categories and hence show the details. GroupCargoImpl Class: It is used for displaying the equipment based on group and cargo type. StayDayImpl Class: This class is used to calculate the availability of equipment on the port. BookingTrendImpl Class: It would be used to display the historic trend of the equipment based on particular group or cargo type. It can be either calculated weekly or monthly.

4.3 WEB SERVICES


Below described are Web Services which are used in WWL Dashboard Application:

4.3.1 INTEGRATION WEB SERVICES 4.3.1.1 WEB SERVICE FOR PORT


This web service is used for updating the port related data into the database When this web service will get called, it will parse the request based on the MessageDetail tag and gets the Username and password. It will authenticate the request based on Username and Password If the Username and Password doesnt match with the values present in the Database, then the request would not be processed and a fault response will be sent. If they are matched, the service would parse the request based on the PortType tag and checks whether the port is present in the database If the port is present it updates the existing data with the new information sent using the web service, else it inserts the port into Database. In case of insertion all the tags should have valid data else the request will be discarded. In case of update, the tags having port code, port name and country code are the mandatory. In case the data gets missed in those tags, then the web service will discard the request and send fault message. There can be more than one port data in the request object, so in case any one of them is inappropriate then the whole request will be discarded and fault message will be sent.

4.3.1.2

WEB SERVICE FOR EQUIPMENT DETAILS


This web service is used for updating the Equipment details into the database: When the web service gets called, it parses the request based on the MessageDetail tag and gets the Username and password. Based on the Username and Password it authenticates the request.

If the Username and Password doesnt match with the values present in the Database, then the request would not be processed and a fault response will be sent. If they are matched, the service would parse the request based on the Equipment tag and then for the Activity tag corresponding to the parent Equipment tag. This web service will also check for Message Type, it can contain either Equipment or Voyage as data. If the Current tag contains Y as data then the transaction is for current and if tag contains N, then the transaction is for history. If the Equipment is already present in the current table, it updates the Equipment with the recent Activity; else it inserts the Equipment with the latest Activity Order into the database. Equipment No, Activity code, Cargo Type and ActivityPortCode are mandatory tags for insertion and update. In case the data gets missed in those tags, then the web service will discard the request and send fault. There can be more than one equipment data and each equipment can have more than one activity in the request object, so in case any one of them is inappropriate then the whole request will be discarded and a fault message will be sent. The Web service will check for current tag and activity order for insertion and update. The following table display the activity that will take place based on the data received by web service :

Equipment New Equip New Equip Old Equip Old Equip Old Equip Old Equip New Equip New Equip Old Equip Old Equip Old Equip Old Equip

Activity Order new new new new old old new new new old old New

Message type Equipment Equipment Equipment Equipment Equipment Equipment Voyage Voyage Voyage Voyage Voyage Voyage

Current Y N Y N Y N Y N Y Y N N

Conclusion Insert into Current Table insert into History Table Update complete row in current insert in history update with given values in current update with given values in History Fault Message Fault Message Fault Message update with given values in current Update with given values in history Fault Message

4.3.2 APPLICATION WEB SERVICES 4.3.2.1 WEB SERVICE FOR INITIAL DATA LOADING
This web service will call the IntialDataLoad Impl class to load the data on the home screen and do the changes as per the user. This is the first/initial web service that gets called by the user. It is the main interface service for the entire WWL Dash board application. It loads the initial/home page based on the username and the default region of user It provides added options/facilities to the global user to change the regions and the countries and view different ports. It provides different choices for the user to select the functionality that has to be performed.

4.3.2.2

WEB SERVICE FOR CATEGORY OPTION


This web service will call CategotyImpl class, which will be used for viewing the equipment related data Category wise. It will also call EquipmentSpec Class to display the specification of equipments of Roll Trailer type. This web service is invoked when user selects the Category option. It returns the count of the available equipments on the selected port. On selection of the category, the corresponding equipments details are returned. If the Equipment is of Roll Trailer, then on further selection of the equipment the corresponding equipment specification details are displayed.

4.3.2.3

WEB SERVICE FOR ON WATER STOCK


This web service is used for viewing equipment on the water. This web service is called when the on water stock option is selected. It returns the detail of all the voyages coming to the selected port along with their voyage number, equipment count and its ETA and ETD information. It also helps in displaying Equipment details (Cargo, status, count) for the selected voyage number.

4.3.2.4

WEB SERVICE FOR STAY DAYS INFORMATION


This web service will display the stay day information of the equipment It gets invoked when Stayday option is selected. It returns the details of group type based on the selected port. Returns the corresponding cargo type for the group type for the selected port It returns Stay days information number of days in each defined category for the selected cargo type.

4.3.2.5

WEB SERVICE FOR BOOKING TREND


This web service will call the Booking-TrendImpl class to display the historic trend of the equipment. This web service gets called when Booking trend option is selected by the user. On selecting the group and cargo type, the web service returns the list of port having the selected cargo Type. Depending on the range (Monthly or weekly) selected by the user the count of equipment is returned by the web service.

4.3.2.6

WEB SERVICE FOR GROUP AND CARGO TYPE (EQUIPMENT TYPE)


This web service will call GroupCargoImpl Class to display the information of equipment belong to the selected group and cargo type. It will call GroupImpl class to implement the group logic. It will also call EquipmentSpec Class to display the specification of equipments of Roll Trailer type. This web service gets invoked on Group and Cargo Type option selection. Based on the user choice, it returns the ports having the selected Cargo type. On selection of the port it returns the list of equipments and on further selection displays equipment specification of selected equipment number.

You might also like