Container Layer
Bases: ComponentManager
, Agent
Class that represents a container layer.
Source code in edge_sim_py/components/container_layer.py
9 10 11 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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
|
__init__(obj_id=None, digest='', size=0, instruction='')
Creates an User object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
obj_id |
int
|
Object identifier. Defaults to None. |
None
|
digest |
str
|
Layer digest. Defaults to "". |
''
|
size |
int
|
Layer size (in megabytes). Defaults to 0. |
0
|
instruction |
str
|
Layer instruction. Defaults to "". |
''
|
Returns:
Name | Type | Description |
---|---|---|
object |
object
|
Created User object. |
Source code in edge_sim_py/components/container_layer.py
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 |
|
collect()
Method that collects a set of metrics for the object.
Returns:
Name | Type | Description |
---|---|---|
metrics |
dict
|
Object metrics. |
Source code in edge_sim_py/components/container_layer.py
68 69 70 71 72 73 74 75 |
|
step()
Method that executes the events involving the object at each time step.
Source code in edge_sim_py/components/container_layer.py
77 78 79 |
|