Class MaterialMetricsCollector
java.lang.Object
com.assemblyrobot.simulator.system.metricscollectors.MaterialMetricsCollector
public class MaterialMetricsCollector
extends java.lang.Object
-
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 theMetricsCollector
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
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 theMetricsCollector
.
-