Skip to content

vUser

Bases: Entity

Source code in PyCloudSim\entity\v_user.py
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
class vUser(Entity):
    def __init__(
        self,
        gateway: vGateway,
        label: str | None = None,
        create_at: int
        | float
        | Callable[..., int]
        | Callable[..., float]
        | None = None,
        terminate_at: int
        | float
        | Callable[..., int]
        | Callable[..., float]
        | None = None,
        precursor: Entity | List[Entity] | None = None,
    ) -> None:
        super().__init__(label, create_at, terminate_at, precursor)

        self._host = gateway

    @property
    def host(self) -> vGateway:
        return self._host