simdart 0.1.0-rc.4 copy "simdart: ^0.1.0-rc.4" to clipboard
simdart: ^0.1.0-rc.4 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(eventA, name: 'A');
  sim.process(eventB, start: 5, name: 'B');

  await sim.run();
}

void eventA(EventContext context) async {
  await context.wait(10);
  context.sim.process(eventC, delay: 1, name: 'C');
}

void eventB(EventContext context) async {
  await context.wait(1);
}

void eventC(EventContext context) async {
  await context.wait(10);
}
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