public class Container extends Object implements Serializable
Copyright (c) 2013-2019 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, 2016Constructor and Description |
---|
Container(DEVSSimulatorInterface.TimeDoubleUnit simulator,
Terminal terminalFrom,
Terminal terminalTo,
boolean empty,
ShippingLine shippingLine) |
public Container(DEVSSimulatorInterface.TimeDoubleUnit simulator, Terminal terminalFrom, Terminal terminalTo, boolean empty, ShippingLine shippingLine)
simulator
- DEVSSimulatorInterface.TimeDoubleUnit; the simulatorterminalFrom
- Terminal; origin terminalterminalTo
- Terminal; destination terminalempty
- boolean; empty or fullshippingLine
- ShippingLine; shipping line of the containerpublic final void addTransportCost(ContainerTransportCostBreakdownEnum costEnum, double cost)
costEnum
- ContainerTransportCostBreakdownEnum; cost categorycost
- double; cost to addpublic final void addTransportFee(ContainerTransportFeeBreakdownEnum feeEnum, double fee)
feeEnum
- ContainerTransportFeeBreakdownEnum; cost categoryfee
- double; the fee to addpublic final void addTransportKgCO2(ContainerTransportCO2BreakdownEnum co2Enum, double kgCO2)
co2Enum
- ContainerTransportCO2BreakdownEnum; CO2 categorykgCO2
- double; the amount of CO2 to addpublic final void addTransportTime(ContainerTransportTimeBreakdownEnum timeEnum, double time)
timeEnum
- ContainerTransportTimeBreakdownEnum; time categorytime
- double; the time in hours to addpublic final double getTransportCost(ContainerTransportCostBreakdownEnum costEnum)
costEnum
- ContainerTransportCostBreakdownEnum; cost categorypublic final double getTransportFee(ContainerTransportFeeBreakdownEnum feeEnum)
feeEnum
- ContainerTransportFeeBreakdownEnum; cost categorypublic final double getTransportKgCO2(ContainerTransportCO2BreakdownEnum co2Enum)
co2Enum
- ContainerTransportCO2BreakdownEnum; CO2 categorypublic final double getTransportTime(ContainerTransportTimeBreakdownEnum timeEnum)
timeEnum
- ContainerTransportTimeBreakdownEnum; time categorypublic final double getSumTransportCost()
public final double getSumTransportFee()
public final double getSumTransportKgCO2()
public final double getSumTransportTime()
public final void collectTerminalStatisticsAtContainerDestination()
public final Terminal getTerminalFrom()
public final Terminal getTerminalTo()
public final Terminal getTerminalLastStacked()
public final void setTerminalFrom(Terminal terminalFrom)
terminalFrom
- Terminal; the terminalFrom to setpublic final void setTerminalTo(Terminal terminalTo)
terminalTo
- Terminal; the terminalTo to setpublic final void setTerminalLastStacked(Terminal terminalLastStacked)
terminalLastStacked
- Terminal; the terminalCurrent to setpublic final boolean isEmpty()
public final FullEmptyEnum fullEmpty()
public final Company getOwner()
public final ShippingLine getShippingLine()
public final String toShortString()
public final Time getStackArrivalTime()
public final void setStackArrivalTime()
public final Time getCreationTime()
public final Time getOnShipTime()
public final void setOnShipTime()
Copyright © 2014–2019 Delft University of Technology. All rights reserved.