...
Initial Port Call LocatorAnchor 2 2
The first port call for a vessel code that is not budget, not estimate, not redelivery, event is departure, event log date (ETDdeparture date) > report date from vessel report. If no port call is found then use exception: No departure port call found for the reported date and vessel.A port call in Dataloy VMS can be registered multiple times after each other with different reason for calls. The Dataloy VRS rule for Departure Reports is to update the ETA arrival and ETB berthing date for the first port call that is not a redelivery port call and the ETD departure date for the last port call that is not a redelivery port call. The report should be inserted to the last port call. This action also controls if the ETD the departure date of the previous port call is fixed. The check is necessary as a departure vessel report may be sent both before or after the ETD. If the ETD departure date for a previous port call is not fixed, then VRS will assume that this is the port call to update (see Step 2).
Locate Pervious Non-Redelivery Port Call but has Port not Equal to Located Port Call in Step 1Anchor 1 1
IF previous port call ETD calls departure date from Step 2 is fixed:Anchor 4 4
Locate last port call where port is equal to the port located in Step 1.Anchor 3 3
IF previous port call ETD calls departure date from Step 2 is not fixed:Anchor 5 5 - Choose previous port call as the main port call where the vessel report should be inserted.
- Get the next port call for the port call located in Steps 2a or 2b (is the next arrival port call).
- If no arrival port call is found: throw exception Can not find next arrival port call.
...
Initial Port Call LocatorAnchor 6 6
The first port call for a vessel code that is not budget, not estimate, not redelivery, event is departure, event log date (ETDdeparture date) > report date from vessel report. If no port call is found then use exception: No departure port call found for the reported date and vessel.- Start with port call from Step 1, loop port calls backwards and locate the first port call where ETD departure date is not fixed (new feature in VRS 2.0).
Registering Port Calls in Dataloy VMS
A port call in Dataloy VMS can be registered multiple times after each other with different reason for calls. The Dataloy VRS rule is to update ETA arrival and ETB berthing date for the first port call that is not a redelivery port call and the ETD departure date for the last port call that is not a redelivery port call. The report should be inserted to the first port call for Arrival and Noon and to the port call from Step 1 for In Port Reports.
Get the last port call where the port is equal to the portCall.port from Step 1.Anchor 9 9
Get the first port call where the port is equal to portCall.port from Step 1.Anchor 7 7
IF Arrival OR Noon ReportAnchor 8 8 - Choose the port call from Step 2b as the main port call where the vessel report should be inserted.
- IF In Port Report
- Choose the port call from Step 1 as the main port call where the vessel report should be inserted.
...
IF Arrival Report
- Update the following data for port call from the IF Arrival OR Noon Report: DistanceActual, DaysStoppages, FoRobArrival, DoRobArrival, FlRobArrival, DlRobArrival
- IF Departure Report
- Update the following data for port call from Locate Pervious Non-Redelivery Port Call but has Port not Equal to Located Port Call in Step 1, Step 2b: FoRobDeparture, DoRobDeparture, FlRobDeparture, DlRobDeparture, FoBunkered, FlBunkered, DoBunkered, DlBunkered.
Update
...
Arrival,
...
Berthing ,
...
Departure - The Fixed Flag Behind
...
Arrival, Berthing and Departure will Automatically be Set to True if Updated Date is in the Past.
- IF Departure Report
- Update the ETD to the departure date for departure port call and ETA to arrival date for arrival port call.
- Ensure that the ETD departure fixed flagg is always set to true, even when the ETD the departure date is in the future.
- IF Noon, Arrival or In Port Report
- Update the ETA arrival and ETB berthing date for the port call located in the IF Noon, Arrival OR In Port Report, Step 2b.
- Update the ETD departure date for the port call located in the IF Noon, Arrival OR In Port Report, Step 2a.
- Ensure that the ETD departure fixed flag is never set to true, even when the ETD departure date is in the past.
...