y_petri 2.1.35 → 2.1.36
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/y_petri/simulation/timed.rb +12 -2
- data/lib/y_petri/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 509f2defaf79d34c62eb0d964c3626fb49d87d2c
|
4
|
+
data.tar.gz: 192651ad32c9854c72182c637744e4e58e05233d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3663b4d86cc496f7ad09209f24dc64754cace4ddf456681bb5dbb4905f4cdaf6b319bd80ecd4d1da738c881e47a9da75e068592135d6af3bba2e159a6c5e2369
|
7
|
+
data.tar.gz: 02dc44901cdd06c634d2801d9b648186d67b17d3d52efdab31bfd097043af334b7dc4dabd72101958c77de9ae1765c42e562281c091441b9147df23119343672
|
@@ -32,10 +32,20 @@ module YPetri::Simulation::Timed
|
|
32
32
|
|
33
33
|
delegate :sampling, to: :recorder
|
34
34
|
|
35
|
-
# Reads the time range
|
35
|
+
# Reads the time range.
|
36
|
+
#
|
37
|
+
def flux ids_of_TS_transitions=nil
|
38
|
+
tt = TS_transitions()
|
39
|
+
return flux tt if ids_of_TS_transitions.nil?
|
40
|
+
TS_transitions( ids_of_TS_transitions ).map { |t|
|
41
|
+
flux_vector.column_to_a.fetch tt.index( t )
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Reads the time range (initial_time .. target_time) of the simulation.
|
36
46
|
#
|
37
47
|
def time_range
|
38
|
-
initial_time..target_time
|
48
|
+
initial_time .. target_time
|
39
49
|
end
|
40
50
|
|
41
51
|
# Returns the settings pertaining to the Timed aspect of the simulation,
|
data/lib/y_petri/version.rb
CHANGED