Index
The PhysicalComponent
class is the base class for vCPU, vCPUCore and vNIC
Bases: Entity
, ABC
Source code in PyCloudSim\entity\v_physical_component.py
powered_off: bool
property
returns True if the physical component is powered off, False otherwise.
powered_on: bool
property
returns True if the physical component is powered on, False otherwise.
__init__(at=simulation.now, after=None, label=None)
Create a physical component.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
at |
Union[int, float, Callable]
|
same as entity. Defaults to simulation.now. |
now
|
after |
Optional[Entity | List[Entity]]
|
same as entity. Defaults to None. |
None
|
label |
Optional[str]
|
same as entity. Defaults to None. |
None
|
Source code in PyCloudSim\entity\v_physical_component.py
on_power_off()
on_power_on()
power_off()
Power off the physical component.
power_on()
Power on the physical component.