Class SSAMetricPoint

  • All Implemented Interfaces:
    java.io.Serializable

    
    public class SSAMetricPoint
     implements Serializable
                        

    Internal representation of a metric point from SSA simulation. Used to collect metrics before sending to OTLP receiver. Metric names are aligned with line-est MetricType enum: - queue_length -> QLen - utilization -> Util - throughput -> Tput - response_time -> RespT - arrival_rate -> ArvR

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      SSAMetricPoint(String metricName, double value, long timestampNanos, Map<String, String> labels) Create a new metric point.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static SSAMetricPoint queueLength(int station, int jobClass, double value, long timestampNanos) Create a queue length metric point.
      static SSAMetricPoint queueLength(int station, int jobClass, String stationName, String className, double value, long timestampNanos) Create a queue length metric point with station/class names.
      static SSAMetricPoint utilization(int station, int jobClass, double value, long timestampNanos) Create a utilization metric point.
      static SSAMetricPoint utilization(int station, int jobClass, String stationName, String className, double value, long timestampNanos) Create a utilization metric point with station/class names.
      static SSAMetricPoint throughput(int station, int jobClass, double value, long timestampNanos) Create a throughput metric point.
      static SSAMetricPoint throughput(int station, int jobClass, String stationName, String className, double value, long timestampNanos) Create a throughput metric point with station/class names.
      static SSAMetricPoint responseTime(int station, int jobClass, double value, long timestampNanos) Create a response time metric point.
      static SSAMetricPoint responseTime(int station, int jobClass, String stationName, String className, double value, long timestampNanos) Create a response time metric point with station/class names.
      static SSAMetricPoint arrivalRate(int station, int jobClass, double value, long timestampNanos) Create an arrival rate metric point.
      static SSAMetricPoint arrivalRate(int station, int jobClass, String stationName, String className, double value, long timestampNanos) Create an arrival rate metric point with station/class names.
      String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SSAMetricPoint

        SSAMetricPoint(String metricName, double value, long timestampNanos, Map<String, String> labels)
        Create a new metric point.
        Parameters:
        metricName - Name of the metric
        value - Metric value
        timestampNanos - Timestamp in nanoseconds
        labels - Additional labels (can be null)
    • Method Detail

      • queueLength

         static SSAMetricPoint queueLength(int station, int jobClass, double value, long timestampNanos)

        Create a queue length metric point.

        Parameters:
        station - Station index
        jobClass - Job class index
        value - Queue length value
        timestampNanos - Timestamp in nanoseconds
        Returns:

        New SSAMetricPoint

      • queueLength

         static SSAMetricPoint queueLength(int station, int jobClass, String stationName, String className, double value, long timestampNanos)

        Create a queue length metric point with station/class names.

        Parameters:
        station - Station index
        jobClass - Job class index
        stationName - Station name
        className - Class name
        value - Queue length value
        timestampNanos - Timestamp in nanoseconds
        Returns:

        New SSAMetricPoint

      • utilization

         static SSAMetricPoint utilization(int station, int jobClass, double value, long timestampNanos)

        Create a utilization metric point.

        Parameters:
        station - Station index
        jobClass - Job class index
        value - Utilization value (0-1)
        timestampNanos - Timestamp in nanoseconds
        Returns:

        New SSAMetricPoint

      • utilization

         static SSAMetricPoint utilization(int station, int jobClass, String stationName, String className, double value, long timestampNanos)

        Create a utilization metric point with station/class names.

        Parameters:
        station - Station index
        jobClass - Job class index
        stationName - Station name
        className - Class name
        value - Utilization value (0-1)
        timestampNanos - Timestamp in nanoseconds
        Returns:

        New SSAMetricPoint

      • throughput

         static SSAMetricPoint throughput(int station, int jobClass, double value, long timestampNanos)

        Create a throughput metric point.

        Parameters:
        station - Station index
        jobClass - Job class index
        value - Throughput value (departures/time)
        timestampNanos - Timestamp in nanoseconds
        Returns:

        New SSAMetricPoint

      • throughput

         static SSAMetricPoint throughput(int station, int jobClass, String stationName, String className, double value, long timestampNanos)

        Create a throughput metric point with station/class names.

        Parameters:
        station - Station index
        jobClass - Job class index
        stationName - Station name
        className - Class name
        value - Throughput value (departures/time)
        timestampNanos - Timestamp in nanoseconds
        Returns:

        New SSAMetricPoint

      • responseTime

         static SSAMetricPoint responseTime(int station, int jobClass, double value, long timestampNanos)

        Create a response time metric point.

        Parameters:
        station - Station index
        jobClass - Job class index
        value - Response time value
        timestampNanos - Timestamp in nanoseconds
        Returns:

        New SSAMetricPoint

      • responseTime

         static SSAMetricPoint responseTime(int station, int jobClass, String stationName, String className, double value, long timestampNanos)

        Create a response time metric point with station/class names.

        Parameters:
        station - Station index
        jobClass - Job class index
        stationName - Station name
        className - Class name
        value - Response time value
        timestampNanos - Timestamp in nanoseconds
        Returns:

        New SSAMetricPoint

      • arrivalRate

         static SSAMetricPoint arrivalRate(int station, int jobClass, double value, long timestampNanos)

        Create an arrival rate metric point.

        Parameters:
        station - Station index
        jobClass - Job class index
        value - Arrival rate value (arrivals/time)
        timestampNanos - Timestamp in nanoseconds
        Returns:

        New SSAMetricPoint

      • arrivalRate

         static SSAMetricPoint arrivalRate(int station, int jobClass, String stationName, String className, double value, long timestampNanos)

        Create an arrival rate metric point with station/class names.

        Parameters:
        station - Station index
        jobClass - Job class index
        stationName - Station name
        className - Class name
        value - Arrival rate value (arrivals/time)
        timestampNanos - Timestamp in nanoseconds
        Returns:

        New SSAMetricPoint