public override void EndFixPoint_OnUnSnapped(Core.Parts.FixPoint stranger) { ThisRouteStatus = new RouteStatus(); NextRouteStatus.OnRouteStatusChanged -= NextRouteStatus_OnAvailableChanged; NextConveyor = null; NextRouteStatus = null; }
void RHSStartFixPoint_OnUnSnapped(Core.Parts.FixPoint stranger) { rhsConveyor.PreviousConveyor = null; rhsPreviousLoadWaitingStatus.OnLoadWaitingChanged -= rhsPreviousLoadWaitingStatus_OnLoadWaitingChanged; rhsPreviousLoadWaitingStatus = null; Reset(); }
public override void EndFixPoint_OnUnSnapped(Core.Parts.FixPoint stranger) { RouteStatus rs = ((IRouteStatus)stranger.Parent).GetRouteStatus(stranger); rs.OnRouteStatusChanged -= rs_OnRouteStatusChanged; base.EndFixPoint_OnUnSnapped(stranger); }
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); }
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; }
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; } }
public override void StartFixPoint_OnUnSnapped(Core.Parts.FixPoint stranger) { if (previousLoadWaitingStatus != null) { previousLoadWaitingStatus.OnLoadWaitingChanged -= PreviousLoadWaitingStatus_OnLoadWaitingChanged; previousLoadWaitingStatus = null; Reset(); } }
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(); }
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; } }
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(); }
private void PickConveyorStartFixPoint_OnUnSnapped(Core.Parts.FixPoint stranger) { var conveyor = stranger.Parent as IPalletRouteStatus; if (conveyor != null) { conveyor.OnLoadArrived -= Conveyor_OnLoadArrived; pickStationConveyors.Remove(conveyor); } }
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); }
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; } } }
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; } } }
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); } }
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; }
void StraightStartFixPoint_OnUnSnapped(Core.Parts.FixPoint stranger) { PreviousConveyor = null; PreviousLoadWaiting = null; PreviousLoadWaiting.OnLoadWaitingChanged -= PreviousLoadWaiting_OnLoadWaitingChanged; }
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; }
private void EndFixPoint_OnSnapped(Core.Parts.FixPoint stranger, Core.Parts.FixPoint.SnapEventArgs e) { LiftConveyor.NextRouteStatus.OnRouteStatusChanged += NextRouteStatus_OnRouteStatusChanged; }