datasim.QueueData¶
- class datasim.QueueData(world, source_id: str, frequency: int = 1, plot_options: ~datasim.types.PlotOptions = <datasim.types.PlotOptions object>)¶
Data source from watching the size of a
Queue
.- __init__(world, source_id: str, frequency: int = 1, plot_options: ~datasim.types.PlotOptions = <datasim.types.PlotOptions object>)¶
Create a data source from watching the size of a
Queue
.- Parameters:
world – The World this data belongs to.
frequency (int, optional) – Frequency in ticks to add data points. Defaults to 1, meaning a point gets added every tick.
plot_options (Optional[PlotOptions], optional) – Options for a plot. Defaults to default PlotOptions which means nothing will be plotted.
Methods
__init__
(world, source_id[, frequency, ...])Create a data source from watching the size of a
Queue
.Attributes
dataset
set_index
source
frequency
world
options