Class FixStation
java.lang.Object
com.assemblyrobot.simulator.core.clock.TickAdvanceListener
com.assemblyrobot.simulator.system.components.Station
com.assemblyrobot.simulator.system.stations.FixStation
- All Implemented Interfaces:
java.lang.Comparable<FixStation>
public class FixStation extends Station implements java.lang.Comparable<FixStation>
Station
implementation for the AssemblyStage
. This station is slightly more
unique compared to the rest, as noted by that it's sub-typed with an ErrorType
.-
Nested Class Summary
Nested classes/interfaces inherited from class com.assemblyrobot.simulator.system.components.Station
Station.Metrics
-
Constructor Summary
Constructors Constructor Description FixStation(@NonNull FixStage stage, @NonNull ErrorType type)
-
Method Summary
Modifier and Type Method Description int
compareTo(@NonNull FixStation station)
protected long
getProcessingTime()
Gets the processing duration of theStation
from a corresponding generator.static void
resetId()
Methods inherited from class com.assemblyrobot.simulator.system.components.Station
addToStationQueue, canPull, getQueueLength, isBusy, onTickAdvance, onTickReset, processMaterial
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Method Details
-
resetId
public static void resetId() -
getProcessingTime
protected long getProcessingTime()Description copied from class:Station
Gets the processing duration of theStation
from a corresponding generator.- Specified by:
getProcessingTime
in classStation
- Returns:
Long
-
compareTo
- Specified by:
compareTo
in interfacejava.lang.Comparable<FixStation>
-