Package org.opentrafficsim.water.demand
Class PartialLoad
java.lang.Object
org.opentrafficsim.water.demand.PartialLoad
- All Implemented Interfaces:
 java.io.Serializable
public class PartialLoad
extends java.lang.Object
implements java.io.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 Summary
Constructors Constructor Description PartialLoad(Terminal terminalFrom, Terminal terminalTo, int number, boolean twentyFt, boolean empty, Company owner) - 
Method Summary
Modifier and Type Method Description intgetNumber()CompanygetOwner()TerminalgetTerminalFrom()TerminalgetTerminalTo()booleanisEmpty()booleanisTwentyFt() 
- 
Constructor Details
- 
PartialLoad
public PartialLoad(Terminal terminalFrom, Terminal terminalTo, int number, boolean twentyFt, boolean empty, Company owner)- Parameters:
 terminalFrom- Terminal; origin terminalterminalTo- Terminal; destination terminalnumber- int; number of containerstwentyFt- boolean; 20 ft?empty- boolean; empty?owner- Company; who owns the container
 
 - 
 - 
Method Details
- 
getTerminalFrom
- Returns:
 - the terminalFrom
 
 - 
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
- Returns:
 - the owner
 
 
 -