Exemple #1
0
 internal void OnLoadInductionArrivedEvent(SorterElementFixPoint induction, Load load)
 {
     if (LoadArrivedAtInduction != null)
     {
         LoadArrivedAtInduction(parent.Control, induction, load);
     }
 }
Exemple #2
0
        internal void OnLoadDestinationArrivedEvent(SorterCarrier carrier, SorterElementFixPoint destination, Load load, bool discharged)
        {
            if (LoadArrivedAtDestination != null)
            {
                LoadArrivedAtDestination(parent.Control, carrier, destination, load, discharged);
            }

            destination.Arriving(carrier, load);
        }
Exemple #3
0
        internal void OnCarrierArrivedEvent(SorterCarrier carrier, SorterElementFixPoint f)
        {
            if (CarrierArrived != null)
            {
                CarrierArrived(parent.Control, carrier, f);
            }

            if (f.InductionPoint != null && f.InductionPoint.ActiveLoad != null && f.InductionPoint.ActiveLoad.Stopped)
            {
                f.Arriving(carrier, f.InductionPoint.ActiveLoad);
            }
        }
Exemple #4
0
 protected override void ConfigureFixPoint(SorterElementFixPoint c)
 {
     c.Fixpoint.LocalPosition = new Vector3(((SorterElementInfo)Info).SorterElementLength / 2 - c.Distance, 0, 0) + c.LocalOffset;
     c.Fixpoint.LocalYaw      = c.LocalYaw / 180f * (float)Math.PI;
 }
Exemple #5
0
 protected override void ConfigureFixPoint(SorterElementFixPoint c)
 {
 }
Exemple #6
0
 /// <summary>
 /// The method will look for free carriers starting from FixPoint global distance minus minimumDistanceFromFixPoint.
 /// </summary>
 /// <param name="minimumDistanceFromFixPoint">Distance in meter.</param>
 /// <param name="f"></param>
 /// <param name="consecutiveCarriers">Number of consecutive free carriers</param>
 /// <returns>List of free carriers. Could be empty if no free carrier is found.</returns>
 public List <SorterCarrier> FirstFreeCarriers(float minimumDistanceFromFixPoint, SorterElementFixPoint f, uint consecutiveCarriers)
 {
     return(parent.FirstFreeCarriers(minimumDistanceFromFixPoint, f, consecutiveCarriers));
 }
Exemple #7
0
 /// <summary>
 /// The method will look for a free carrier starting from FixPoint global distance minus MinimumDistanceFromFixPoint.
 /// </summary>
 /// <param name="minimumDistanceFromFixPoint">Distance in meter.</param>
 /// <param name="f"></param>
 /// <returns>the first free carrier. Could be null if no free carrier is found.</returns>
 public SorterCarrier FirstFreeCarrier(float minimumDistanceFromFixPoint, SorterElementFixPoint f)
 {
     return(parent.FirstFreeCarrier(minimumDistanceFromFixPoint, f));
 }
Exemple #8
0
 /// <summary>
 /// Calculate the time in seconds to arrival of the carrier at the FixPoint.
 /// </summary>
 /// <param name="carrier"></param>
 /// <param name="fixpoint"></param>
 /// <returns></returns>
 public float TimeToArrival(SorterCarrier carrier, SorterElementFixPoint fixpoint)
 {
     return(parent.TimeToArrival(carrier, fixpoint));
 }
Exemple #9
0
 /// <summary>
 /// Set the destination for this load. When the load arrives a LoadArrived event will occur.
 /// </summary>
 /// <param name="load"></param>
 /// <param name="destination"></param>
 /// <param name="leadtime"></param>
 /// <returns>Returns true if the destination is successfully set.</returns>
 public bool SetLoadDestination(Load load, SorterElementFixPoint destination, float leadtime)
 {
     return(parent.SetLoadDestination(load, destination, leadtime));
 }
Exemple #10
0
 /// <summary>
 /// Set the destination for this load. When the load arrives a LoadArrived event will occur.
 /// </summary>
 /// <param name="load"></param>
 /// <param name="destination"></param>
 /// <returns>Returns true if the destination is successfully set.</returns>
 public bool SetLoadDestination(Load load, SorterElementFixPoint destination)
 {
     return(parent.SetLoadDestination(load, destination));
 }
Exemple #11
0
 /// <summary>
 /// Calling this method will cause a CarrierArrived event when the carrier arrives at the FixPoint.
 /// If a sorter controller is listening to this event it will handle the event. Otherwise nothing will happen.
 /// </summary>
 /// <param name="carrier">The carrier that should arrive at the FixPoint</param>
 /// <param name="f"></param>
 /// /// <param name="leadtime"></param>
 /// <returns>Returns false if there is another notification waiting for this FixPoint.</returns>
 public bool NotifyArrival(SorterCarrier carrier, SorterElementFixPoint f, float leadtime)
 {
     return(parent.NotifyArrival(carrier, f, leadtime));
 }
Exemple #12
0
 /// <summary>
 /// Calling this method will cause a CarrierArrived event when the carrier arrives at the FixPoint.
 /// If a sorter controller is listening to this event it will handle the event. Otherwise nothing will happen.
 /// </summary>
 /// <param name="carrier">The carrier that should arrive at the FixPoint</param>
 /// <param name="f"></param>
 /// <returns>Returns false if there is another notification waiting for this FixPoint.</returns>
 public bool NotifyArrival(SorterCarrier carrier, SorterElementFixPoint f)
 {
     return(parent.NotifyArrival(carrier, f));
 }