Class MaterialMetricsCollector

java.lang.Object
com.assemblyrobot.simulator.system.metricscollectors.MaterialMetricsCollector

public class MaterialMetricsCollector
extends java.lang.Object
Collects data and metrics of a Material as it passes through a Stage and Station
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  MaterialMetricsCollector.Metrics  
  • Constructor Summary

    Constructors
    Constructor Description
    MaterialMetricsCollector​(@NonNull StageID stageId, @NonNull java.lang.String stationId, long materialId)  
  • Method Summary

    Modifier and Type Method Description
    long getPassthroughTime()  
    long getProcessingDuration()
    Gets the duration of how long it has taken to process a material.
    long getQueueDuration()
    Gets the duration of how long a material has queued.
    void updateMetrics()
    Copies values of relevant class fields to the MetricsCollector.

    Methods inherited from class java.lang.Object

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

    • MaterialMetricsCollector

      public MaterialMetricsCollector​(@NonNull @NonNull StageID stageId, @NonNull @NonNull java.lang.String stationId, long materialId)
  • Method Details

    • getQueueDuration

      public long getQueueDuration()
      Gets the duration of how long a material has queued.
      Returns:
      Long
    • getProcessingDuration

      public long getProcessingDuration()
      Gets the duration of how long it has taken to process a material.
      Returns:
      Long
    • getPassthroughTime

      public long getPassthroughTime()
    • updateMetrics

      public void updateMetrics()
      Copies values of relevant class fields to the MetricsCollector.