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
ConstructorsConstructorDescriptionSnapshot(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 aSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theaverageMidPricerecord component.Returns the value of theaverageQueueLengthPerServicePointrecord component.doubleReturns the value of theaverageServicePointUtilizationrecord component.doubleReturns the value of theaverageSpreadrecord component.doubleReturns the value of theaverageWaitingTimerecord component.doubleReturns the value of thebottleneckAverageQueueLengthrecord component.booleanReturns the value of thebottleneckDetectedrecord component.intReturns the value of thebottleneckServicePointIndexrecord component.final booleanIndicates whether some other object is "equal to" this one.doublefillRate()Returns the value of thefillRaterecord component.final inthashCode()Returns a hash code value for this object.doublemaxPrice()Returns the value of themaxPricerecord component.doubleminPrice()Returns the value of theminPricerecord component.intReturns the value of theremainingOrdersInBookrecord component.Returns the value of theservicePointUtilizationrecord component.doubleReturns the value of thethroughputrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalArrivedOrdersrecord component.longReturns the value of thetotalExecutedOrdersrecord component.longReturns the value of thetotalTradesrecord component.trades()Returns the value of thetradesrecord component.doublevwap()Returns the value of thevwaprecord component.
-
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 aSnapshotrecord class.- Parameters:
totalArrivedOrders- the value for thetotalArrivedOrdersrecord componenttotalExecutedOrders- the value for thetotalExecutedOrdersrecord componentremainingOrdersInBook- the value for theremainingOrdersInBookrecord componenttotalTrades- the value for thetotalTradesrecord componentvwap- the value for thevwaprecord componentaverageMidPrice- the value for theaverageMidPricerecord componentminPrice- the value for theminPricerecord componentmaxPrice- the value for themaxPricerecord componentaverageSpread- the value for theaverageSpreadrecord componentthroughput- the value for thethroughputrecord componentaverageWaitingTime- the value for theaverageWaitingTimerecord componentfillRate- the value for thefillRaterecord componentaverageServicePointUtilization- the value for theaverageServicePointUtilizationrecord componentservicePointUtilization- the value for theservicePointUtilizationrecord componentaverageQueueLengthPerServicePoint- the value for theaverageQueueLengthPerServicePointrecord componentbottleneckDetected- the value for thebottleneckDetectedrecord componentbottleneckServicePointIndex- the value for thebottleneckServicePointIndexrecord componentbottleneckAverageQueueLength- the value for thebottleneckAverageQueueLengthrecord componenttrades- the value for thetradesrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
totalArrivedOrders
public long totalArrivedOrders()Returns the value of thetotalArrivedOrdersrecord component.- Returns:
- the value of the
totalArrivedOrdersrecord component
-
totalExecutedOrders
public long totalExecutedOrders()Returns the value of thetotalExecutedOrdersrecord component.- Returns:
- the value of the
totalExecutedOrdersrecord component
-
remainingOrdersInBook
public int remainingOrdersInBook()Returns the value of theremainingOrdersInBookrecord component.- Returns:
- the value of the
remainingOrdersInBookrecord component
-
totalTrades
public long totalTrades()Returns the value of thetotalTradesrecord component.- Returns:
- the value of the
totalTradesrecord component
-
vwap
public double vwap()Returns the value of thevwaprecord component.- Returns:
- the value of the
vwaprecord component
-
averageMidPrice
public double averageMidPrice()Returns the value of theaverageMidPricerecord component.- Returns:
- the value of the
averageMidPricerecord component
-
minPrice
public double minPrice()Returns the value of theminPricerecord component.- Returns:
- the value of the
minPricerecord component
-
maxPrice
public double maxPrice()Returns the value of themaxPricerecord component.- Returns:
- the value of the
maxPricerecord component
-
averageSpread
public double averageSpread()Returns the value of theaverageSpreadrecord component.- Returns:
- the value of the
averageSpreadrecord component
-
throughput
public double throughput()Returns the value of thethroughputrecord component.- Returns:
- the value of the
throughputrecord component
-
averageWaitingTime
public double averageWaitingTime()Returns the value of theaverageWaitingTimerecord component.- Returns:
- the value of the
averageWaitingTimerecord component
-
fillRate
public double fillRate()Returns the value of thefillRaterecord component.- Returns:
- the value of the
fillRaterecord component
-
averageServicePointUtilization
public double averageServicePointUtilization()Returns the value of theaverageServicePointUtilizationrecord component.- Returns:
- the value of the
averageServicePointUtilizationrecord component
-
servicePointUtilization
-
averageQueueLengthPerServicePoint
-
bottleneckDetected
public boolean bottleneckDetected()Returns the value of thebottleneckDetectedrecord component.- Returns:
- the value of the
bottleneckDetectedrecord component
-
bottleneckServicePointIndex
public int bottleneckServicePointIndex()Returns the value of thebottleneckServicePointIndexrecord component.- Returns:
- the value of the
bottleneckServicePointIndexrecord component
-
bottleneckAverageQueueLength
public double bottleneckAverageQueueLength()Returns the value of thebottleneckAverageQueueLengthrecord component.- Returns:
- the value of the
bottleneckAverageQueueLengthrecord component
-
trades
Returns the value of thetradesrecord component.- Returns:
- the value of the
tradesrecord component
-