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 intcompareTo(@NonNull FixStation station)protected longgetProcessingTime()Gets the processing duration of theStationfrom a corresponding generator.static voidresetId()Methods inherited from class com.assemblyrobot.simulator.system.components.Station
addToStationQueue, canPull, getQueueLength, isBusy, onTickAdvance, onTickReset, processMaterialMethods 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:StationGets the processing duration of theStationfrom a corresponding generator.- Specified by:
getProcessingTimein classStation- Returns:
Long
-
compareTo
- Specified by:
compareToin interfacejava.lang.Comparable<FixStation>
-