Class StationQueue
java.lang.Object
com.assemblyrobot.simulator.system.components.StationQueue
public class StationQueue
extends java.lang.Object
Generic station list/queue, ordered by vacancy (I.e. the simulator makes an assumption of
automatically prioritising empty stations over full ones,
Materials get no choice over
this).-
Constructor Summary
Constructors Constructor Description StationQueue() -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
StationQueue
public StationQueue()
-
-
Method Details
-
add
Adds a station to the queue.- Parameters:
station-Station
-
peek
Returns the next vacantStation.- Returns:
- First vacant
Station.
-
getAll
Returns aListof allStations in this queue.- Returns:
List<Station>
-
dump
public void dump()Dumps all stations from the queue. Used for resets between simulator runs.
-