simdart 0.1.0 copy "simdart: ^0.1.0" to clipboard
simdart: ^0.1.0 copied to clipboard

A discrete event simulation package for Dart, designed for modeling and analyzing processes and systems.

example/example.dart

import 'package:simdart/simdart.dart';

void main() async {
  final SimDart sim = SimDart(onTrack: (track) => print(track));

  sim.process(event: _a, name: 'A');

  await sim.run(until: 10);
}

void _a(EventContext context) async {
  await context.wait(2);
  context.sim.process(event: _a, delay: 2, name: 'A');
}
1
likes
0
points
31
downloads

Publisher

verified publishercaduandrade.net

Weekly Downloads

A discrete event simulation package for Dart, designed for modeling and analyzing processes and systems.

Repository (GitHub)
View/report issues

Topics

#system-analysis #event-driven #simulation #discrete-event-simulation

License

unknown (license)

Dependencies

collection, meta

More

Packages that depend on simdart