se.citerus.dddsample.interfaces.booking.facade.dto
Class CargoRoutingDTO

java.lang.Object
  extended by 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.
 
Method Summary
 void addLeg(java.lang.String voyageNumber, java.lang.String from, java.lang.String to, java.util.Date loadTime, java.util.Date unloadTime)
           
 java.util.Date getArrivalDeadline()
           
 java.lang.String getFinalDestination()
           
 java.util.List<LegDTO> getLegs()
           
 java.lang.String getOrigin()
           
 java.lang.String getTrackingId()
           
 boolean isMisrouted()
           
 boolean isRouted()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 -
Method Detail

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.