Exemple #1
0
 public override void EndFixPoint_OnUnSnapped(Core.Parts.FixPoint stranger)
 {
     ThisRouteStatus = new RouteStatus();
     NextRouteStatus.OnRouteStatusChanged -= NextRouteStatus_OnAvailableChanged;
     NextConveyor    = null;
     NextRouteStatus = null;
 }
Exemple #2
0
 void RHSStartFixPoint_OnUnSnapped(Core.Parts.FixPoint stranger)
 {
     rhsConveyor.PreviousConveyor = null;
     rhsPreviousLoadWaitingStatus.OnLoadWaitingChanged -= rhsPreviousLoadWaitingStatus_OnLoadWaitingChanged;
     rhsPreviousLoadWaitingStatus = null;
     Reset();
 }
Exemple #3
0
        public override void EndFixPoint_OnUnSnapped(Core.Parts.FixPoint stranger)
        {
            RouteStatus rs = ((IRouteStatus)stranger.Parent).GetRouteStatus(stranger);

            rs.OnRouteStatusChanged -= rs_OnRouteStatusChanged;
            base.EndFixPoint_OnUnSnapped(stranger);
        }
Exemple #4
0
        public override void EndFixPoint_OnSnapped(Core.Parts.FixPoint stranger, Core.Parts.FixPoint.SnapEventArgs e)
        {
            RouteStatus rs = ((IRouteStatus)stranger.Parent).GetRouteStatus(stranger);

            rs.OnRouteStatusChanged += rs_OnRouteStatusChanged;
            base.EndFixPoint_OnSnapped(stranger, e);
        }
Exemple #5
0
 void rhsStartFixPoint_OnSnapped(Core.Parts.FixPoint stranger, Core.Parts.FixPoint.SnapEventArgs e)
 {
     rhsConveyor.PreviousConveyor    = stranger.Parent as IRouteStatus;
     rhsConveyor.PreviousLoadWaiting = rhsConveyor.PreviousConveyor.GetLoadWaitingStatus(stranger);
     rhsConveyor.PreviousLoadWaiting.OnLoadWaitingChanged += rhsPreviousLoadWaitingStatus_OnLoadWaitingChanged;
     //rhsPreviousLoadWaitingStatus = rhsConveyor.PreviousConveyor.GetLoadWaitingStatus(stranger);
     //rhsPreviousLoadWaitingStatus.OnLoadWaitingChanged += rhsPreviousLoadWaitingStatus_OnLoadWaitingChanged;
 }
Exemple #6
0
 void rhsEndFixPoint_OnSnapped(Core.Parts.FixPoint stranger, Core.Parts.FixPoint.SnapEventArgs e)
 {
     //On the two way conveyor set the speed of the straight sections to the speed of the attached conveyor
     if (transferInfo.type == TransferType.TwoWay)
     {
         rhsConveyor.Speed = rhsConveyor.NextConveyor.Speed;
     }
 }
Exemple #7
0
 public override void StartFixPoint_OnUnSnapped(Core.Parts.FixPoint stranger)
 {
     if (previousLoadWaitingStatus != null)
     {
         previousLoadWaitingStatus.OnLoadWaitingChanged -= PreviousLoadWaitingStatus_OnLoadWaitingChanged;
         previousLoadWaitingStatus = null;
         Reset();
     }
 }
Exemple #8
0
 void lhsStartFixPoint_OnUnSnapped(Core.Parts.FixPoint stranger)
 {
     lhsConveyor.PreviousConveyor = null;
     lhsConveyor.PreviousLoadWaiting.OnLoadWaitingChanged -= lhsPreviousLoadWaitingStatus_OnLoadWaitingChanged;
     lhsConveyor.PreviousLoadWaiting = null;
     //lhsPreviousLoadWaitingStatus.OnLoadWaitingChanged -= lhsPreviousLoadWaitingStatus_OnLoadWaitingChanged;
     //lhsPreviousLoadWaitingStatus = null;
     Reset();
 }
Exemple #9
0
 public override void StartFixPoint_OnSnapped(Core.Parts.FixPoint stranger, Core.Parts.FixPoint.SnapEventArgs e)
 {
     PreviousConveyor          = stranger.Parent as IRouteStatus;
     previousLoadWaitingStatus = PreviousConveyor.GetLoadWaitingStatus(stranger);
     if (previousLoadWaitingStatus != null)
     {
         previousLoadWaitingStatus.OnLoadWaitingChanged += PreviousLoadWaitingStatus_OnLoadWaitingChanged;
     }
 }
Exemple #10
0
        public void DivertSection_EndFixPoint_OnUnSnapped(Core.Parts.FixPoint stranger)
        {
            divertSection.TransportSection.Route.NextRoute = null;
            ThisRouteStatus = new RouteStatus();
            NextRouteStatus.OnRouteStatusChanged -= NextRouteStatus_OnAvailableChanged;
            NextConveyor    = null;
            NextRouteStatus = null;

            Reset();
        }
Exemple #11
0
        private void PickConveyorStartFixPoint_OnUnSnapped(Core.Parts.FixPoint stranger)
        {
            var conveyor = stranger.Parent as IPalletRouteStatus;

            if (conveyor != null)
            {
                conveyor.OnLoadArrived -= Conveyor_OnLoadArrived;
                pickStationConveyors.Remove(conveyor);
            }
        }
Exemple #12
0
        public override void EndFixPoint_OnSnapped(Core.Parts.FixPoint stranger, Core.Parts.FixPoint.SnapEventArgs e)
        {
            Speed = ((BaseTrack)stranger.Parent).Speed;
            StraightConveyor nextConveyor = stranger.Parent as StraightConveyor; //This is a bit dodgy how do we know the next conveyor is going to be straight (TODO)

            if (nextConveyor != null)
            {
                nextConveyor.OnSpeedUpdated += BeltSorterMerge_OnSpeedUpdated;
            }
            base.EndFixPoint_OnSnapped(stranger, e);
        }
Exemple #13
0
 public virtual void EndFixPoint_OnSnapped(Core.Parts.FixPoint stranger, Core.Parts.FixPoint.SnapEventArgs e)
 {
     NextConveyor = stranger.Parent as IRouteStatus;
     if (NextConveyor != null)
     {
         NextRouteStatus = NextConveyor.GetRouteStatus(stranger);
         if (NextRouteStatus != null)
         {
             NextRouteStatus.OnRouteStatusChanged += NextRouteStatus_OnAvailableChanged;
         }
     }
 }
Exemple #14
0
 public virtual void EndFixPoint_OnUnSnapped(Core.Parts.FixPoint stranger)
 {
     if (stranger.Parent is BaseTrack)
     {
         NextConveyor = null;
         if (NextRouteStatus != null)
         {
             NextRouteStatus.OnRouteStatusChanged -= NextRouteStatus_OnAvailableChanged;
             NextRouteStatus = null;
         }
     }
 }
Exemple #15
0
 public override void EndFixPoint_OnSnapped(Core.Parts.FixPoint stranger, Core.Parts.FixPoint.SnapEventArgs e)
 {
     if (stranger.Type != FixPoint.Types.End)
     {
         //Get the available status of the next conveyor and set as this conveyors available status
         //This route available status will mirror the route available status of the next conveyor (merge/divert)
         NextConveyor    = stranger.Parent as IRouteStatus;
         NextRouteStatus = NextConveyor.GetRouteStatus(stranger);// .GetAvailableStatus(stranger);
         RouteAvailable  = NextRouteStatus.Available;
         //ThisRouteStatus.Available = NextRouteStatus.Available;
         NextRouteStatus.OnRouteStatusChanged += NextRouteStatus_OnAvailableChanged;
     }
     else
     {
         Core.Environment.Log.Write("WARNING can't snap an end to and end; turn your conveyor arround", Color.Orange);
     }
 }
Exemple #16
0
 void LHSStartFixPoint_OnSnapped(Core.Parts.FixPoint stranger, Core.Parts.FixPoint.SnapEventArgs e)
 {
     lhsConveyor.PreviousConveyor = stranger.Parent as IRouteStatus;
     lhsPreviousLoadWaitingStatus = lhsConveyor.PreviousConveyor.GetLoadWaitingStatus(stranger);
     lhsPreviousLoadWaitingStatus.OnLoadWaitingChanged += lhsPreviousLoadWaitingStatus_OnLoadWaitingChanged;
 }
Exemple #17
0
 void StraightStartFixPoint_OnUnSnapped(Core.Parts.FixPoint stranger)
 {
     PreviousConveyor    = null;
     PreviousLoadWaiting = null;
     PreviousLoadWaiting.OnLoadWaitingChanged -= PreviousLoadWaiting_OnLoadWaitingChanged;
 }
Exemple #18
0
 void StraightStartFixPoint_OnSnapped(Core.Parts.FixPoint stranger, Core.Parts.FixPoint.SnapEventArgs e)
 {
     PreviousConveyor    = stranger.Parent as IRouteStatus;
     PreviousLoadWaiting = PreviousConveyor.GetLoadWaitingStatus(stranger);
     PreviousLoadWaiting.OnLoadWaitingChanged += PreviousLoadWaiting_OnLoadWaitingChanged;
 }
Exemple #19
0
 private void EndFixPoint_OnSnapped(Core.Parts.FixPoint stranger, Core.Parts.FixPoint.SnapEventArgs e)
 {
     LiftConveyor.NextRouteStatus.OnRouteStatusChanged += NextRouteStatus_OnRouteStatusChanged;
 }