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