Monitor
Bases: Entity
, ABC
Source code in PyCloudSim\monitor\__init__.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
|
sample_period
property
Return the sample period of the monitor.
__init__(label, sample_period=0.1)
Base class for all monitors
Parameters:
Name | Type | Description | Default |
---|---|---|---|
label |
str
|
the short name of the monitor. |
required |
sample_period |
int | float | Callable[..., int] | Callable[..., float]
|
the sample period. Defaults to 0.1. |
0.1
|
Source code in PyCloudSim\monitor\__init__.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
on_observation(*arg, **kwargs)
abstractmethod
The method to be called at each observation/sample.
Source code in PyCloudSim\monitor\__init__.py
47 48 49 50 |
|