Fig. (2) Logic flowchart of ship operations for an arrival ship with a Y-type waterway intersection: (a) overall logic; (b) check intersection and safe distance of an inbound ship; (c) check intersection and safe distance of an outbound ship (e.g.; from western area).