@@ -13,11 +13,12 @@ import 'package:simdart/src/start_time_handling.dart';
1313
1414/// Represents the temporal loop in the algorithm, managing the execution of actions at specified times.
1515@internal
16- class TimeLoop implements SimConfigurationInterface ,NowInterface ,SimResultInterface {
16+ class TimeLoop
17+ implements SimConfigurationInterface , NowInterface , SimResultInterface {
1718 TimeLoop (
1819 {required int ? now,
1920 required this .beforeRun,
20- required this .includeTracks,
21+ required this .includeTracks,
2122 required this .executionPriority,
2223 required this .startTimeHandling}) {
2324 _now = now ?? 0 ;
@@ -35,7 +36,7 @@ class TimeLoop implements SimConfigurationInterface,NowInterface,SimResultInterf
3536 final Function beforeRun;
3637
3738 @override
38- final bool includeTracks;
39+ final bool includeTracks;
3940
4041 /// Queue that holds the [TimeAction] instances to be executed at their respective times.
4142 final PriorityQueue <TimeAction > _actions = PriorityQueue <TimeAction >(
@@ -98,7 +99,7 @@ class TimeLoop implements SimConfigurationInterface,NowInterface,SimResultInterf
9899 return _buildResult ();
99100 }
100101
101- SimResult _buildResult (){
102+ SimResult _buildResult () {
102103 return SimResult (startTime: startTime, duration: duration, tracks: _tracks);
103104 }
104105
@@ -120,7 +121,7 @@ class TimeLoop implements SimConfigurationInterface,NowInterface,SimResultInterf
120121 _actions.add (action);
121122 }
122123
123- void addTrack (SimulationTrack track){
124+ void addTrack (SimulationTrack track) {
124125 _tracks ?? = [];
125126 _tracks! .add (track);
126127 }
0 commit comments