Class PartialLoad

  • All Implemented Interfaces:
    Serializable

    public class PartialLoad
    extends Object
    implements Serializable
    A number of similar (empty/full, 20/40 ft, same owner) containers that has to travel / travels between an origin terminal and a destination terminal.

    Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
    BSD-style license. See OpenTrafficSim License.

    Based on software from the IDVV project, which is Copyright (c) 2013 Rijkswaterstaat - Dienst Water, Verkeer en Leefomgeving and licensed without restrictions to Delft University of Technology, including the right to sub-license sources and derived products to third parties.

    $LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version Nov 6, 2016
    Author:
    Alexander Verbraeck
    See Also:
    Serialized Form
    • Constructor Detail

      • PartialLoad

        public PartialLoad​(Terminal terminalFrom,
                           Terminal terminalTo,
                           int number,
                           boolean twentyFt,
                           boolean empty,
                           Company owner)
        Parameters:
        terminalFrom - Terminal; origin terminal
        terminalTo - Terminal; destination terminal
        number - int; number of containers
        twentyFt - boolean; 20 ft?
        empty - boolean; empty?
        owner - Company; who owns the container
    • Method Detail

      • getTerminalFrom

        public final Terminal getTerminalFrom()
        Returns:
        the terminalFrom
      • getTerminalTo

        public final Terminal getTerminalTo()
        Returns:
        the terminalTo
      • getNumber

        public final int getNumber()
        Returns:
        the number
      • isTwentyFt

        public final boolean isTwentyFt()
        Returns:
        the twentyFt
      • isEmpty

        public final boolean isEmpty()
        Returns:
        the empty
      • getOwner

        public final Company getOwner()
        Returns:
        the owner