public class Container extends Object implements Serializable
Copyright (c) 2013-2017 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(org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator,
Terminal terminalFrom,
Terminal terminalTo,
boolean empty,
ShippingLine shippingLine) |
public Container(org.opentrafficsim.core.dsol.OTSDEVSSimulatorInterface simulator, Terminal terminalFrom, Terminal terminalTo, boolean empty, ShippingLine shippingLine)
simulator
- the simulatorterminalFrom
- origin terminalterminalTo
- destination terminalempty
- empty or fullshippingLine
- shipping line of the containerpublic final void addTransportCost(ContainerTransportCostBreakdownEnum costEnum, double cost)
costEnum
- cost categorycost
- cost to addpublic final void addTransportFee(ContainerTransportFeeBreakdownEnum feeEnum, double fee)
feeEnum
- cost categoryfee
- the fee to addpublic final void addTransportKgCO2(ContainerTransportCO2BreakdownEnum co2Enum, double kgCO2)
co2Enum
- CO2 categorykgCO2
- the amount of CO2 to addpublic final void addTransportTime(ContainerTransportTimeBreakdownEnum timeEnum, double time)
timeEnum
- time categorytime
- the time in hours to addpublic final double getTransportCost(ContainerTransportCostBreakdownEnum costEnum)
costEnum
- cost categorypublic final double getTransportFee(ContainerTransportFeeBreakdownEnum feeEnum)
feeEnum
- cost categorypublic final double getTransportKgCO2(ContainerTransportCO2BreakdownEnum co2Enum)
co2Enum
- CO2 categorypublic final double getTransportTime(ContainerTransportTimeBreakdownEnum timeEnum)
timeEnum
- 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
- the terminalFrom to setpublic final void setTerminalTo(Terminal terminalTo)
terminalTo
- the terminalTo to setpublic final void setTerminalLastStacked(Terminal terminalLastStacked)
terminalLastStacked
- 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 org.djunits.value.vdouble.scalar.Time getStackArrivalTime()
public final void setStackArrivalTime()
public final org.djunits.value.vdouble.scalar.Time getCreationTime()
public final org.djunits.value.vdouble.scalar.Time getOnShipTime()
public final void setOnShipTime()
Copyright © 2014–2017 Delft University of Technology. All rights reserved.