OptimalTZSlotFinder

Code Extension Type: RAIL_OPTIMAL_TZ_SLOT_FINDER (on page 1)

Purpose: Finds the best transfer point for a given move. For example, for a rail load, it finds the closest empty TP to park a chassis. For a rail discharge, it could be a bare, unreserved chassis in a defined 'near zone', or an empty slot (needing a preposition chassis move) closest to the spatially closest TP in the 'near zone' or 'far zone' as defined by the EC Parameters RTZFZR and RTZNZR. If it finds a TP outside of the 'far zone', the TP decker fails to deck.

This code extension does not calculate the optimal TZ slot for a work instructions if the EMT for the work instruction is null.

If your site has additional or different requirements, you can override the system-seeded instance of this code extension with a custom version.

To use this code extension, you must launch the Optimal Transfer Zone Slot Finder background job (Administration System Background Jobs View Actions Launch Optimal Transfer Zone Slot Finder Job. Additionally, if you use this code extension, you should enable the XPS setting USN4TZ.

Note:  If the Carrier Visit field is has bad data, the OptimalTZSlotFinder.groovy will check the following fields in this order:

  1. Actual Visit

  1. Declared Visit for inbound train rail discharge.

  2. Intended Visit for outbound train rail load