datasim.StateData

class datasim.StateData(world, source: ~datasim.entity.Entity, frequency: int = 1, plot_options: ~datasim.types.PlotOptions = <datasim.types.PlotOptions object>)

Data source from watching the state of an Entity.

__init__(world, source: ~datasim.entity.Entity, frequency: int = 1, plot_options: ~datasim.types.PlotOptions = <datasim.types.PlotOptions object>)

Create a data source from watching the state of an Entity.

Parameters:
  • world – The World this data belongs to.

  • source (Entity) – Source Entity.

  • 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[, frequency, ...])

Create a data source from watching the state of an Entity.

Attributes

dataset

set_index

source

frequency

world

options