pytwinnet.simulation.events

Classes

Event(timestamp)

MoveNodeEvent(timestamp, node_id, new_position)

TrafficGenerationEvent(timestamp, ...)

class pytwinnet.simulation.events.Event(timestamp)[source]

Bases: object

Parameters:

timestamp (float)

apply(twin)[source]
Return type:

None

Parameters:

twin (DigitalTwin)

timestamp: float
class pytwinnet.simulation.events.MoveNodeEvent(timestamp, node_id, new_position)[source]

Bases: Event

Parameters:
apply(twin)[source]
Return type:

None

Parameters:

twin (DigitalTwin)

new_position: Tuple[float, float, float]
node_id: str
timestamp: float
class pytwinnet.simulation.events.TrafficGenerationEvent(timestamp, source_node, dest_node, data_rate_mbps)[source]

Bases: Event

Parameters:
apply(twin)[source]
Return type:

None

Parameters:

twin (DigitalTwin)

data_rate_mbps: float
dest_node: str
source_node: str
timestamp: float