y_petri 2.2.3 → 2.2.4
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/fixed_assets.rb +1 -1
- data/lib/y_petri/net/data_set.rb +4 -4
- data/lib/y_petri/net.rb +0 -2
- data/lib/y_petri/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fee764f4263722567acef71d06105293254a2d1
|
4
|
+
data.tar.gz: f852ca2e666b5d6cccf19ba82d10087f32bc1535
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f0306ce895efb751c75635b9366fe227183f438ed5c20613f727197db5c862b5029387a430a1f30f8829d4b272136cd6800458e61fb3060b3e8f4a042268926
|
7
|
+
data.tar.gz: 388a31f3d3fd44b4cb04a6727812cddf5c99738349ef0c7323d9f1a8ca0949243e11990670670e08511a2b94141f3ced23310051e92ae4e62f3cf5b821a83c8d
|
data/lib/y_petri/fixed_assets.rb
CHANGED
data/lib/y_petri/net/data_set.rb
CHANGED
@@ -76,12 +76,12 @@ class YPetri::Net::DataSet < Hash
|
|
76
76
|
|
77
77
|
# Recreates the simulation at a given event label.
|
78
78
|
#
|
79
|
-
def reconstruct
|
79
|
+
def reconstruct at: (fail "No event given!"), **settings
|
80
80
|
# settings may include marking clamps, marking, inital marking...
|
81
|
-
rec = interpolate(
|
81
|
+
rec = interpolate( at )
|
82
82
|
settings = settings().merge settings if settings()
|
83
83
|
if timed? then
|
84
|
-
rec.reconstruct time:
|
84
|
+
rec.reconstruct time: at, **settings
|
85
85
|
else
|
86
86
|
rec.reconstruct **settings
|
87
87
|
end
|
@@ -161,7 +161,7 @@ class YPetri::Net::DataSet < Hash
|
|
161
161
|
if absent_features.empty? then # it is a subset
|
162
162
|
line = reduced_features.map { |feature| record.fetch feature }
|
163
163
|
else # it will require simulation reconstruction
|
164
|
-
sim = reconstruct
|
164
|
+
sim = reconstruct at: event
|
165
165
|
if absent_features.any? { |f| f.timed? rescue false } then
|
166
166
|
fail ArgumentError, "Reconstruction of timed features requires " +
|
167
167
|
"the named arg :delta_time to be given!" unless Δt
|
data/lib/y_petri/net.rb
CHANGED
data/lib/y_petri/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: y_petri
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- boris
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: y_support
|