Пример #1
0
 protected InPortCargo(InPortCargo previousState, IItinerary newItinerary)
     : base(previousState, newItinerary)
 {
     _lastKnownLocation = previousState._lastKnownLocation;
     _date          = previousState._date;
     _customCleared = previousState._customCleared;
 }
Пример #2
0
 protected InPortCargo(InPortCargo previousState, DateTime clearCustomDate)
     : base(previousState)
 {
     _lastKnownLocation = previousState._lastKnownLocation;
     _customCleared     = true;
     _date = clearCustomDate;
 }
Пример #3
0
 protected InPortCargo(InPortCargo previousState, IRouteSpecification newRoute)
     : base(previousState, newRoute)
 {
     _lastKnownLocation = previousState._lastKnownLocation;
     _date          = previousState._date;
     _customCleared = previousState._customCleared;
 }
Пример #4
0
        public override bool Equals(CargoState other)
        {
            InPortCargo cargo = other as InPortCargo;

            if (null != cargo && !_customCleared.Equals(cargo._customCleared))
            {
                return(false);
            }
            return(base.Equals(other));
        }