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);
 }
Exemple #2
0
 private bool IsLastMovementOfLeg(CarrierMovement x)
 {
    return x.ArrivalTime == UnloadDate && x.TransportLeg.ArrivalLocation == UnloadLocation;
 }
Exemple #3
0
 private bool IsFirstMovementOfLeg(CarrierMovement x)
 {
    return x.DepartureTime == LoadDate && x.TransportLeg.DepartureLocation == LoadLocation;
 }