Ejemplo n.º 1
0
 private void initMetrics()
 {
     if (!storeStatistics)
     {
         return;
     }
     dgSendTime = new MeanValue("Datagram send time");
     statistics.addMetric(dgSendTime);
     dgSendInterval = new MeanValue("Datagram send interval");
     statistics.addMetric(dgSendInterval);
     throughput = new MeanThroughput("Throughput", session.getDatagramSize());
     statistics.addMetric(throughput);
 }
Ejemplo n.º 2
0
 private void initMetrics()
 {
     if (!storeStatistics)
     {
         return;
     }
     dgReceiveInterval = new MeanValue("UDT receive interval", false, 64);
     statistics.addMetric(dgReceiveInterval);
     dataPacketInterval = new MeanValue("Data packet interval", false, 64);
     statistics.addMetric(dataPacketInterval);
     processTime = new MeanValue("UDT packet process time", false, 64);
     statistics.addMetric(processTime);
     dataProcessTime = new MeanValue("Data packet process time", false, 64);
     statistics.addMetric(dataProcessTime);
 }
Ejemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id.GetHashCode();
         hashCode = (hashCode * 397) ^ TimeStamp.GetHashCode();
         hashCode = (hashCode * 397) ^ (RealmSlug?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ MeanValue.GetHashCode();
         hashCode = (hashCode * 397) ^ AdjustedMeanValue.GetHashCode();
         hashCode = (hashCode * 397) ^ LowestValue.GetHashCode();
         hashCode = (hashCode * 397) ^ HighestValue.GetHashCode();
         hashCode = (hashCode * 397) ^ Quantity;
         return(hashCode);
     }
 }
Ejemplo n.º 4
0
 /**
  * add a metric
  * @param m - the metric to add
  */
 public void addMetric(MeanValue m)
 {
     metrics.Add(m);
 }
Ejemplo n.º 5
0
 protected bool Equals(ItemData other)
 {
     return(Id == other.Id && TimeStamp.Equals(other.TimeStamp) && string.Equals(RealmSlug, other.RealmSlug) && MeanValue.Equals(other.MeanValue) && AdjustedMeanValue.Equals(other.AdjustedMeanValue) && LowestValue.Equals(other.LowestValue) && HighestValue.Equals(other.HighestValue) && Quantity == other.Quantity);
 }
Ejemplo n.º 6
0
 public ActionResult MV(MeanValue meanValue)
 {
     return(View("均值", meanValue));
 }