You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+49-50Lines changed: 49 additions & 50 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,63 +37,62 @@ julia> Pkg.add("SimJulia")
37
37
38
38
#### Release Notes
39
39
40
-
* Version 0.5 does no longer integrate a continuous time solver. A continuous time solver using SimJulia as its discrete event engine can be found in [QuantizedStateSystems](https://github.com/BenLauwens/QuantizedStateSystems.jl.git)
41
-
* Starting from SimJulia v0.4.1, [ResumableFunctions](https://github.com/BenLauwens/ResumableFunctions.jl.git) is a separate package exporting the `resumable` and `yield` macro and it is a dependency for `SimJulia`. Users have to take into account the following syntax change:
40
+
* Version 0.5 does no longer integrate a continuous time solver. A continuous time solver using SimJulia as its discrete event engine can be found in the repository [QuantizedStateSystems](https://github.com/BenLauwens/QuantizedStateSystems.jl.git)
41
+
* Starting from version 0.4.1, [ResumableFunctions](https://github.com/BenLauwens/ResumableFunctions.jl.git) is a separate package exporting the `resumable` and `yield` macro and it is a dependency for `SimJulia`. Users have to take into account the following syntax change:
42
42
*`@yield return arg` is replaced by `@yield arg`
43
-
* Version 0.4 is a complete rewrite: more julian and less pythonic.
44
-
* Only supports Julia v0.6 and above.
45
-
* Scheduling of events can be done with `Base.Dates.Datetime` and `Base.Dates.Period`:
46
-
```julia
47
-
using SimJulia
48
-
using Base.Dates
49
-
50
-
functiondatetimetest(sim::Simulation)
51
-
println(nowDatetime(sim))
52
-
yield(Timeout(sim, Day(2)))
53
-
println(nowDatetime(sim))
54
-
end
55
-
56
-
datetime =now()
57
-
sim =Simulation(datetime)
58
-
@processdatetimetest(sim)
59
-
run(sim, datetime+Month(3))
60
-
```
61
-
* The discrete event features are on par with version 0.3. (STABLE)
62
-
* Two ways of making `Processes` are provided:
63
-
- using the existing concept of `Tasks`:
43
+
* Version 0.4 only supports Julia v0.6 and above. It is a complete rewrite: more julian and less pythonic.
44
+
* The discrete event features are on par with version 0.3 and following features are added:
45
+
* Scheduling of events can be done with `Base.Dates.Datetime` and `Base.Dates.Period`:
64
46
```julia
65
-
functionfibonnaci(sim::Simulation)
66
-
a =0.0
67
-
b =1.0
68
-
whiletrue
69
-
println(now(sim), ": ", a)
70
-
yield(Timeout(sim, 1))
71
-
a, b = b, a+b
72
-
end
47
+
using SimJulia
48
+
using Base.Dates
49
+
50
+
functiondatetimetest(sim::Simulation)
51
+
println(nowDatetime(sim))
52
+
yield(Timeout(sim, Day(2)))
53
+
println(nowDatetime(sim))
73
54
end
74
55
75
-
sim =Simulation()
76
-
@processfibonnaci(sim)
77
-
run(sim, 10)
56
+
datetime =now()
57
+
sim =Simulation(datetime)
58
+
@processdatetimetest(sim)
59
+
run(sim, datetime+Month(3))
78
60
```
79
-
- using a novel finite-statemachine approach:
80
-
```julia
81
-
using ResumableFunctions
82
-
83
-
@resumablefunctionfibonnaci(sim::Simulation)
84
-
a =0.0
85
-
b =1.0
86
-
whiletrue
87
-
println(now(sim), ": ", a)
88
-
@yieldTimeout(sim, 1)
89
-
a, b = b, a+b
61
+
* Two ways of making `Processes` are provided:
62
+
- using the existing concept of `Tasks`:
63
+
```julia
64
+
functionfibonnaci(sim::Simulation)
65
+
a =0.0
66
+
b =1.0
67
+
whiletrue
68
+
println(now(sim), ": ", a)
69
+
yield(Timeout(sim, 1))
70
+
a, b = b, a+b
71
+
end
90
72
end
91
-
end
92
73
93
-
sim =Simulation()
94
-
@coroutinefibonnaci(sim)
95
-
run(sim, 10)
96
-
```
74
+
sim =Simulation()
75
+
@processfibonnaci(sim)
76
+
run(sim, 10)
77
+
```
78
+
-using a novel finite-statemachine approach:
79
+
```julia
80
+
using ResumableFunctions
81
+
82
+
@resumable function fibonnaci(sim::Simulation)
83
+
a = 0.0
84
+
b = 1.0
85
+
while true
86
+
println(now(sim), ": ", a)
87
+
@yield Timeout(sim, 1)
88
+
a, b = b, a+b
89
+
end
90
+
end
91
+
92
+
sim = Simulation()
93
+
@coroutine fibonnaci(sim)
94
+
run(sim, 10)
95
+
```
97
96
* Documentation is automated with [Documenter.jl](https://github.com/JuliaDocs/Documenter.jl). (WIP)
0 commit comments