Record Class Records.StatisticsAndMetricsRecord
java.lang.Object
java.lang.Record
eds.database.Records.StatisticsAndMetricsRecord
- Record Components:
id- auto-generated database primary keyrunTimestamp- date and time the run was savedrunName- optional user-defined label for the runseed- random seed used for reproducibilitymeanValidation- mean service time at the validation stagemeanMarket- mean service time at the market matching stagemeanLimit- mean service time at the limit matching stagemeanExecution- mean service time at the execution stagemeanArrival- mean inter-arrival time between orderssimulationTime- total simulated time elapsedtotalOrders- total number of orders that arrivedtotalTrades- total number of trades executedfilledOrders- number of orders fully matchedcancelledOrders- number of orders that left unfilledremainingOrders- number of orders still in the order book at endvwap- volume-weighted average trade priceavgMidPrice- average mid-price across the simulationminPrice- lowest trade price recordedmaxPrice- highest trade price recordedavgSpread- average bid-ask spreadavgLatency- average time from order arrival to executionthroughput- orders processed per unit of simulation timefillRate- fraction of orders successfully filled (0.0–1.0)utilizationValidation- fraction of time the validation stage was busyutilizationMarket- fraction of time the market matching stage was busyutilizationLimit- fraction of time the limit matching stage was busyutilizationExecution- fraction of time the execution stage was busyavgQueueValidation- average queue length at the validation stageavgQueueMarket- average queue length at the market matching stageavgQueueLimit- average queue length at the limit matching stageavgQueueExecution- average queue length at the execution stage
- Enclosing class:
Records
public static record Records.StatisticsAndMetricsRecord(int id, String runTimestamp, String runName, long seed, double meanValidation, double meanMarket, double meanLimit, double meanExecution, double meanArrival, double simulationTime, int totalOrders, int totalTrades, int filledOrders, int cancelledOrders, int remainingOrders, double vwap, double avgMidPrice, double minPrice, double maxPrice, double avgSpread, double avgLatency, double throughput, double fillRate, double utilizationValidation, double utilizationMarket, double utilizationLimit, double utilizationExecution, double avgQueueValidation, double avgQueueMarket, double avgQueueLimit, double avgQueueExecution)
extends Record
Holds all statistics and metrics for a single simulation run.
-
Constructor Summary
ConstructorsConstructorDescriptionStatisticsAndMetricsRecord(int id, String runTimestamp, String runName, long seed, double meanValidation, double meanMarket, double meanLimit, double meanExecution, double meanArrival, double simulationTime, int totalOrders, int totalTrades, int filledOrders, int cancelledOrders, int remainingOrders, double vwap, double avgMidPrice, double minPrice, double maxPrice, double avgSpread, double avgLatency, double throughput, double fillRate, double utilizationValidation, double utilizationMarket, double utilizationLimit, double utilizationExecution, double avgQueueValidation, double avgQueueMarket, double avgQueueLimit, double avgQueueExecution) Creates an instance of aStatisticsAndMetricsRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theavgLatencyrecord component.doubleReturns the value of theavgMidPricerecord component.doubleReturns the value of theavgQueueExecutionrecord component.doubleReturns the value of theavgQueueLimitrecord component.doubleReturns the value of theavgQueueMarketrecord component.doubleReturns the value of theavgQueueValidationrecord component.doubleReturns the value of theavgSpreadrecord component.intReturns the value of thecancelledOrdersrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefilledOrdersrecord component.doublefillRate()Returns the value of thefillRaterecord component.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.doublemaxPrice()Returns the value of themaxPricerecord component.doubleReturns the value of themeanArrivalrecord component.doubleReturns the value of themeanExecutionrecord component.doubleReturns the value of themeanLimitrecord component.doubleReturns the value of themeanMarketrecord component.doubleReturns the value of themeanValidationrecord component.doubleminPrice()Returns the value of theminPricerecord component.intReturns the value of theremainingOrdersrecord component.runName()Returns the value of therunNamerecord component.Returns the value of therunTimestamprecord component.longseed()Returns the value of theseedrecord component.doubleReturns the value of thesimulationTimerecord component.doubleReturns the value of thethroughputrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalOrdersrecord component.intReturns the value of thetotalTradesrecord component.doubleReturns the value of theutilizationExecutionrecord component.doubleReturns the value of theutilizationLimitrecord component.doubleReturns the value of theutilizationMarketrecord component.doubleReturns the value of theutilizationValidationrecord component.doublevwap()Returns the value of thevwaprecord component.
-
Constructor Details
-
StatisticsAndMetricsRecord
public StatisticsAndMetricsRecord(int id, String runTimestamp, String runName, long seed, double meanValidation, double meanMarket, double meanLimit, double meanExecution, double meanArrival, double simulationTime, int totalOrders, int totalTrades, int filledOrders, int cancelledOrders, int remainingOrders, double vwap, double avgMidPrice, double minPrice, double maxPrice, double avgSpread, double avgLatency, double throughput, double fillRate, double utilizationValidation, double utilizationMarket, double utilizationLimit, double utilizationExecution, double avgQueueValidation, double avgQueueMarket, double avgQueueLimit, double avgQueueExecution) Creates an instance of aStatisticsAndMetricsRecordrecord class.- Parameters:
id- the value for theidrecord componentrunTimestamp- the value for therunTimestamprecord componentrunName- the value for therunNamerecord componentseed- the value for theseedrecord componentmeanValidation- the value for themeanValidationrecord componentmeanMarket- the value for themeanMarketrecord componentmeanLimit- the value for themeanLimitrecord componentmeanExecution- the value for themeanExecutionrecord componentmeanArrival- the value for themeanArrivalrecord componentsimulationTime- the value for thesimulationTimerecord componenttotalOrders- the value for thetotalOrdersrecord componenttotalTrades- the value for thetotalTradesrecord componentfilledOrders- the value for thefilledOrdersrecord componentcancelledOrders- the value for thecancelledOrdersrecord componentremainingOrders- the value for theremainingOrdersrecord componentvwap- the value for thevwaprecord componentavgMidPrice- the value for theavgMidPricerecord componentminPrice- the value for theminPricerecord componentmaxPrice- the value for themaxPricerecord componentavgSpread- the value for theavgSpreadrecord componentavgLatency- the value for theavgLatencyrecord componentthroughput- the value for thethroughputrecord componentfillRate- the value for thefillRaterecord componentutilizationValidation- the value for theutilizationValidationrecord componentutilizationMarket- the value for theutilizationMarketrecord componentutilizationLimit- the value for theutilizationLimitrecord componentutilizationExecution- the value for theutilizationExecutionrecord componentavgQueueValidation- the value for theavgQueueValidationrecord componentavgQueueMarket- the value for theavgQueueMarketrecord componentavgQueueLimit- the value for theavgQueueLimitrecord componentavgQueueExecution- the value for theavgQueueExecutionrecord 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. -
id
-
runTimestamp
Returns the value of therunTimestamprecord component.- Returns:
- the value of the
runTimestamprecord component
-
runName
-
seed
-
meanValidation
public double meanValidation()Returns the value of themeanValidationrecord component.- Returns:
- the value of the
meanValidationrecord component
-
meanMarket
public double meanMarket()Returns the value of themeanMarketrecord component.- Returns:
- the value of the
meanMarketrecord component
-
meanLimit
-
meanExecution
public double meanExecution()Returns the value of themeanExecutionrecord component.- Returns:
- the value of the
meanExecutionrecord component
-
meanArrival
public double meanArrival()Returns the value of themeanArrivalrecord component.- Returns:
- the value of the
meanArrivalrecord component
-
simulationTime
public double simulationTime()Returns the value of thesimulationTimerecord component.- Returns:
- the value of the
simulationTimerecord component
-
totalOrders
public int totalOrders()Returns the value of thetotalOrdersrecord component.- Returns:
- the value of the
totalOrdersrecord component
-
totalTrades
public int totalTrades()Returns the value of thetotalTradesrecord component.- Returns:
- the value of the
totalTradesrecord component
-
filledOrders
public int filledOrders()Returns the value of thefilledOrdersrecord component.- Returns:
- the value of the
filledOrdersrecord component
-
cancelledOrders
public int cancelledOrders()Returns the value of thecancelledOrdersrecord component.- Returns:
- the value of the
cancelledOrdersrecord component
-
remainingOrders
public int remainingOrders()Returns the value of theremainingOrdersrecord component.- Returns:
- the value of the
remainingOrdersrecord component
-
vwap
-
avgMidPrice
public double avgMidPrice()Returns the value of theavgMidPricerecord component.- Returns:
- the value of the
avgMidPricerecord component
-
minPrice
-
maxPrice
-
avgSpread
-
avgLatency
public double avgLatency()Returns the value of theavgLatencyrecord component.- Returns:
- the value of the
avgLatencyrecord component
-
throughput
public double throughput()Returns the value of thethroughputrecord component.- Returns:
- the value of the
throughputrecord component
-
fillRate
-
utilizationValidation
public double utilizationValidation()Returns the value of theutilizationValidationrecord component.- Returns:
- the value of the
utilizationValidationrecord component
-
utilizationMarket
public double utilizationMarket()Returns the value of theutilizationMarketrecord component.- Returns:
- the value of the
utilizationMarketrecord component
-
utilizationLimit
public double utilizationLimit()Returns the value of theutilizationLimitrecord component.- Returns:
- the value of the
utilizationLimitrecord component
-
utilizationExecution
public double utilizationExecution()Returns the value of theutilizationExecutionrecord component.- Returns:
- the value of the
utilizationExecutionrecord component
-
avgQueueValidation
public double avgQueueValidation()Returns the value of theavgQueueValidationrecord component.- Returns:
- the value of the
avgQueueValidationrecord component
-
avgQueueMarket
public double avgQueueMarket()Returns the value of theavgQueueMarketrecord component.- Returns:
- the value of the
avgQueueMarketrecord component
-
avgQueueLimit
public double avgQueueLimit()Returns the value of theavgQueueLimitrecord component.- Returns:
- the value of the
avgQueueLimitrecord component
-
avgQueueExecution
public double avgQueueExecution()Returns the value of theavgQueueExecutionrecord component.- Returns:
- the value of the
avgQueueExecutionrecord component
-