datasim.Constant

class datasim.Constant(world, id: str, value: str | int | float | None)

A numeric or string value used to initialise a simulation run. Can also be set to None.

These are used to create variations of constant values outside of other simulation objects (e.g. `Resource`s or `Queue`s) between different batches.

__init__(world, id: str, value: str | int | float | None)

Create a constant value.

Parameters:
  • world (World) – The world the constant belongs to.

  • id (str) – Unique identifier of the Constant.

  • value (int or float or str or None) – The value of the constant.

Methods

__init__(world, id, value)

Create a constant value.

Attributes

world

id

value