Ejemplo n.º 1
0
 private static TransitEdge ToEdge(Voyage voyage, CarrierMovement movement)
 {
    return new TransitEdge(voyage,
       movement.TransportLeg.DepartureLocation.UnLocode.CodeString,
       movement.TransportLeg.ArrivalLocation.UnLocode.CodeString,
       movement.DepartureTime,
       movement.ArrivalTime);
 }
Ejemplo n.º 2
0
 private bool IsLastMovementOfLeg(CarrierMovement x)
 {
    return x.ArrivalTime == UnloadDate && x.TransportLeg.ArrivalLocation == UnloadLocation;
 }
Ejemplo n.º 3
0
 private bool IsFirstMovementOfLeg(CarrierMovement x)
 {
    return x.DepartureTime == LoadDate && x.TransportLeg.DepartureLocation == LoadLocation;
 }