Record Class StatisticsCollector.Snapshot

java.lang.Object
java.lang.Record
eds.model.StatisticsCollector.Snapshot
Enclosing class:
StatisticsCollector

public static record StatisticsCollector.Snapshot(long totalArrivedOrders, long totalExecutedOrders, int remainingOrdersInBook, long totalTrades, double vwap, double averageMidPrice, double minPrice, double maxPrice, double averageSpread, double throughput, double averageWaitingTime, double fillRate, double averageServicePointUtilization, List<Double> servicePointUtilization, List<Double> averageQueueLengthPerServicePoint, boolean bottleneckDetected, int bottleneckServicePointIndex, double bottleneckAverageQueueLength, List<Records.TradeRecord> trades) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Snapshot(long totalArrivedOrders, long totalExecutedOrders, int remainingOrdersInBook, long totalTrades, double vwap, double averageMidPrice, double minPrice, double maxPrice, double averageSpread, double throughput, double averageWaitingTime, double fillRate, double averageServicePointUtilization, List<Double> servicePointUtilization, List<Double> averageQueueLengthPerServicePoint, boolean bottleneckDetected, int bottleneckServicePointIndex, double bottleneckAverageQueueLength, List<Records.TradeRecord> trades)
    Creates an instance of a Snapshot record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the value of the averageMidPrice record component.
    Returns the value of the averageQueueLengthPerServicePoint record component.
    double
    Returns the value of the averageServicePointUtilization record component.
    double
    Returns the value of the averageSpread record component.
    double
    Returns the value of the averageWaitingTime record component.
    double
    Returns the value of the bottleneckAverageQueueLength record component.
    boolean
    Returns the value of the bottleneckDetected record component.
    int
    Returns the value of the bottleneckServicePointIndex record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    double
    Returns the value of the fillRate record component.
    final int
    Returns a hash code value for this object.
    double
    Returns the value of the maxPrice record component.
    double
    Returns the value of the minPrice record component.
    int
    Returns the value of the remainingOrdersInBook record component.
    Returns the value of the servicePointUtilization record component.
    double
    Returns the value of the throughput record component.
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the totalArrivedOrders record component.
    long
    Returns the value of the totalExecutedOrders record component.
    long
    Returns the value of the totalTrades record component.
    Returns the value of the trades record component.
    double
    Returns the value of the vwap record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Snapshot

      public Snapshot(long totalArrivedOrders, long totalExecutedOrders, int remainingOrdersInBook, long totalTrades, double vwap, double averageMidPrice, double minPrice, double maxPrice, double averageSpread, double throughput, double averageWaitingTime, double fillRate, double averageServicePointUtilization, List<Double> servicePointUtilization, List<Double> averageQueueLengthPerServicePoint, boolean bottleneckDetected, int bottleneckServicePointIndex, double bottleneckAverageQueueLength, List<Records.TradeRecord> trades)
      Creates an instance of a Snapshot record class.
      Parameters:
      totalArrivedOrders - the value for the totalArrivedOrders record component
      totalExecutedOrders - the value for the totalExecutedOrders record component
      remainingOrdersInBook - the value for the remainingOrdersInBook record component
      totalTrades - the value for the totalTrades record component
      vwap - the value for the vwap record component
      averageMidPrice - the value for the averageMidPrice record component
      minPrice - the value for the minPrice record component
      maxPrice - the value for the maxPrice record component
      averageSpread - the value for the averageSpread record component
      throughput - the value for the throughput record component
      averageWaitingTime - the value for the averageWaitingTime record component
      fillRate - the value for the fillRate record component
      averageServicePointUtilization - the value for the averageServicePointUtilization record component
      servicePointUtilization - the value for the servicePointUtilization record component
      averageQueueLengthPerServicePoint - the value for the averageQueueLengthPerServicePoint record component
      bottleneckDetected - the value for the bottleneckDetected record component
      bottleneckServicePointIndex - the value for the bottleneckServicePointIndex record component
      bottleneckAverageQueueLength - the value for the bottleneckAverageQueueLength record component
      trades - the value for the trades record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • totalArrivedOrders

      public long totalArrivedOrders()
      Returns the value of the totalArrivedOrders record component.
      Returns:
      the value of the totalArrivedOrders record component
    • totalExecutedOrders

      public long totalExecutedOrders()
      Returns the value of the totalExecutedOrders record component.
      Returns:
      the value of the totalExecutedOrders record component
    • remainingOrdersInBook

      public int remainingOrdersInBook()
      Returns the value of the remainingOrdersInBook record component.
      Returns:
      the value of the remainingOrdersInBook record component
    • totalTrades

      public long totalTrades()
      Returns the value of the totalTrades record component.
      Returns:
      the value of the totalTrades record component
    • vwap

      public double vwap()
      Returns the value of the vwap record component.
      Returns:
      the value of the vwap record component
    • averageMidPrice

      public double averageMidPrice()
      Returns the value of the averageMidPrice record component.
      Returns:
      the value of the averageMidPrice record component
    • minPrice

      public double minPrice()
      Returns the value of the minPrice record component.
      Returns:
      the value of the minPrice record component
    • maxPrice

      public double maxPrice()
      Returns the value of the maxPrice record component.
      Returns:
      the value of the maxPrice record component
    • averageSpread

      public double averageSpread()
      Returns the value of the averageSpread record component.
      Returns:
      the value of the averageSpread record component
    • throughput

      public double throughput()
      Returns the value of the throughput record component.
      Returns:
      the value of the throughput record component
    • averageWaitingTime

      public double averageWaitingTime()
      Returns the value of the averageWaitingTime record component.
      Returns:
      the value of the averageWaitingTime record component
    • fillRate

      public double fillRate()
      Returns the value of the fillRate record component.
      Returns:
      the value of the fillRate record component
    • averageServicePointUtilization

      public double averageServicePointUtilization()
      Returns the value of the averageServicePointUtilization record component.
      Returns:
      the value of the averageServicePointUtilization record component
    • servicePointUtilization

      public List<Double> servicePointUtilization()
      Returns the value of the servicePointUtilization record component.
      Returns:
      the value of the servicePointUtilization record component
    • averageQueueLengthPerServicePoint

      public List<Double> averageQueueLengthPerServicePoint()
      Returns the value of the averageQueueLengthPerServicePoint record component.
      Returns:
      the value of the averageQueueLengthPerServicePoint record component
    • bottleneckDetected

      public boolean bottleneckDetected()
      Returns the value of the bottleneckDetected record component.
      Returns:
      the value of the bottleneckDetected record component
    • bottleneckServicePointIndex

      public int bottleneckServicePointIndex()
      Returns the value of the bottleneckServicePointIndex record component.
      Returns:
      the value of the bottleneckServicePointIndex record component
    • bottleneckAverageQueueLength

      public double bottleneckAverageQueueLength()
      Returns the value of the bottleneckAverageQueueLength record component.
      Returns:
      the value of the bottleneckAverageQueueLength record component
    • trades

      public List<Records.TradeRecord> trades()
      Returns the value of the trades record component.
      Returns:
      the value of the trades record component