...
Legs are defined by patterns. A pattern contains of all port calls of a leg and can hold information about a default agent and default bunker prices for the pattern. Each leg can have a number of different patterns, for example, during summer a leg might consist of four port calls, in winter only two. The ports of a pattern are sorted by assigned sequence and hold typical port information, such as reason for call, default port cost, currency, terminal name and laytime data.
...