← Về thư mục
skills/simpy/scripts/basic_simulation_template.py
- EventLimitExceeded · class · L50-L51 — class EventLimitExceeded(RuntimeError)
- BoundedEnvironment · class · L56-L70 — class BoundedEnvironment(_SIMPY.Environment)
- init · method · L59-L62 — def init(self, *, max_events: int)
- step · method · L64-L70 — def step(self) -> None
- BoundedEnvironment · class · L74-L80 — class BoundedEnvironment
- init · method · L77-L80 — def init(self, *, max_events: int)
- QueueConfig · class · L84-L177 — class QueueConfig
- from_mapping · method · L99-L177 — def from_mapping(cls, value: dict[str, Any] | None) -> "QueueConfig"
- QueueStatistics · class · L181-L192 — class QueueStatistics
- _optional_mean · function · L195-L196 — def _optional_mean(values: list[float]) -> float | None
- _customer · function · L199-L221 — def _customer( env: BoundedEnvironment, *, resource: simpy.Resource, stats: QueueStatistics, service_rng: random.Random, mean_service: float, arrival_time: float, warm_up: float, ) -> Any
- _arrivals · function · L223-L256 — def _arrivals( env: BoundedEnvironment, *, resource: simpy.Resource, config: QueueConfig, stats: QueueStatistics, arrival_rng: random.Random, service_rng: random.Random, ) -> Any
- run_simulation · function · L259-L371 — def run_simulation( config: QueueConfig, *, replication: int = 0, trace_max_records: int | None = None, ) -> dict[str, Any]
- build_parser · function · L374-L393 — def build_parser() -> argparse.ArgumentParser
- main · function · L396-L411 — def main(argv: list[str] | None = None) -> int