Class ReinjectionStatus

java.lang.Object
uk.ac.manchester.spinnaker.messages.model.ReinjectionStatus

public class ReinjectionStatus
extends Object
Represents a status information message obtained from the dropped packet reinjection core (an "extra monitor" core).
  • Constructor Details

  • Method Details

    • encodeTimeout

      public static int encodeTimeout​(int mantissa, int exponent)
      How to convert a timeout from mantissa and exponent into a single 8-bit float.
      Parameters:
      mantissa - The timeout mantissa.
      exponent - The timeout exponent.
      Returns:
      The encoded value.
    • getTimeout

      public RouterTimeout getTimeout()
      Returns:
      The WAIT1 timeout value of the router in cycles.
    • getEmergencyTimeout

      public RouterTimeout getEmergencyTimeout()
      Returns:
      The WAIT2 timeout value of the router in cycles.
    • getNumDroppedPackets

      public int getNumDroppedPackets()
      Returns:
      The number of packets dropped by the router and received by the reinjection functionality (may not fit in the queue though).
    • getNumMissedDroppedPackets

      public int getNumMissedDroppedPackets()
      Returns:
      The number of times that when a dropped packet was read it was found that another one or more packets had also been dropped, but had been missed.
    • getNumDroppedPacketOverflows

      public int getNumDroppedPacketOverflows()
      Returns:
      Of the n_dropped_packets received, how many were lost due to not having enough space in the queue of packets to reinject.
    • getNumProcessorDumps

      public int getNumProcessorDumps()
      Returns:
      The number of times that when a dropped packet was caused due to a processor failing to take the packet.
    • getNumLinkDumps

      public int getNumLinkDumps()
      Returns:
      The number of times that when a dropped packet was caused due to a link failing to take the packet.
    • getNumReinjectedPackets

      public int getNumReinjectedPackets()
      Returns:
      Of the number of dropped packets received, how many packets were successfully reinjected.
    • isReinjectingMulticast

      public boolean isReinjectingMulticast()
      Returns:
      if re-injection of multicast packets is enabled.
    • isReinjectingPointToPoint

      public boolean isReinjectingPointToPoint()
      Returns:
      if re-injection of point-to-point packets is enabled.
    • isReinjectingNearestNeighbour

      public boolean isReinjectingNearestNeighbour()
      Returns:
      if re-injection of nearest neighbour packets is enabled.
    • isReinjectingFixedRoute

      public boolean isReinjectingFixedRoute()
      Returns:
      if re-injection of fixed-route packets is enabled.
    • toString

      public String toString()
      Overrides:
      toString in class Object