mosaik.basic_simulators
— Basic simulators
- class InputSimulator[source]
This simulator gives a steady input to a connected simulator. This input can either be an constant value or given by a custom function based on the current time.
When starting the simulator, a custom step size may be provided using the step_size parameter. The default is 1.
When creating a Constant entity, the constant must be passed as the parameter constant.
When creating a Function entity, a function should be passed as the function parameter. This function should take the current mosaik time and return the desired value. This type of entity only works when the simulator is started using the “python” method.
In either case, the entity will produce its output on the value attribute.