se.citerus.dddsample.interfaces.booking.facade.dto
Class CargoRoutingDTO
java.lang.Object
se.citerus.dddsample.interfaces.booking.facade.dto.CargoRoutingDTO
- All Implemented Interfaces:
- java.io.Serializable
public final class CargoRoutingDTO
- extends java.lang.Object
- implements java.io.Serializable
DTO for registering and routing a cargo.
- See Also:
- Serialized Form
Constructor Summary |
CargoRoutingDTO(java.lang.String trackingId,
java.lang.String origin,
java.lang.String finalDestination,
java.util.Date arrivalDeadline,
boolean misrouted)
Constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CargoRoutingDTO
public CargoRoutingDTO(java.lang.String trackingId,
java.lang.String origin,
java.lang.String finalDestination,
java.util.Date arrivalDeadline,
boolean misrouted)
- Constructor.
- Parameters:
trackingId
- origin
- finalDestination
- arrivalDeadline
- misrouted
-
getTrackingId
public java.lang.String getTrackingId()
getOrigin
public java.lang.String getOrigin()
getFinalDestination
public java.lang.String getFinalDestination()
addLeg
public void addLeg(java.lang.String voyageNumber,
java.lang.String from,
java.lang.String to,
java.util.Date loadTime,
java.util.Date unloadTime)
getLegs
public java.util.List<LegDTO> getLegs()
- Returns:
- An unmodifiable list DTOs.
isMisrouted
public boolean isMisrouted()
isRouted
public boolean isRouted()
getArrivalDeadline
public java.util.Date getArrivalDeadline()
Copyright © 2009. All Rights Reserved.