pylupnt.Simulation

class pylupnt.Simulation

Agent-based simulation: holds the agents, the shared World, and the timed event queue; run() drives the event loop to completion.

get_agent(self: pylupnt._pylupnt.Simulation, name: str) pylupnt._pylupnt.Agent

Get the agent registered under name

get_duration(self: pylupnt._pylupnt.Simulation) float

Total scenario duration [s]

get_time(self: pylupnt._pylupnt.Simulation) float

Current simulation time [s]

get_world(self: pylupnt._pylupnt.Simulation) pylupnt._pylupnt.World

The shared read-only World environment (None if no world: block was defined)

run(self: pylupnt._pylupnt.Simulation) None

Run the event loop to completion.