weel 1.99.148 → 1.99.149
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/weel.rb +8 -17
- data/weel.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 75f93b76bf6a052ab4599ab858f7fe6af5ffcb694c09a4d37a334dbafe7f2382
|
|
4
|
+
data.tar.gz: 59c5301f495c1d6ab3ee162b7dfcdd62e1cffc8224b2215d0591668e67045af8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b67b945afbda1ea61fa806746768fe43d9dc92eb15749690cfb98a019e49d284a3edcce595d45d96f44569210c26f93a92023ed26bbbad9d0d7e893b053788de
|
|
7
|
+
data.tar.gz: eeebb997bbeb33b2304db64c84ca2e29a5dc478e70bbccdb3539eacc4e185fbd8f50addcc051285be41d17867730c44fa574338c93b49b72117013226f24b26c
|
data/lib/weel.rb
CHANGED
|
@@ -490,11 +490,12 @@ class WEEL
|
|
|
490
490
|
@__weel_connectionwrapper_args = []
|
|
491
491
|
@__weel_state = :ready
|
|
492
492
|
@__weel_status = Status.new(0,"undefined")
|
|
493
|
-
@
|
|
493
|
+
@__weel_abandon = false
|
|
494
494
|
@__weel_lock = Mutex.new
|
|
495
495
|
end #}}}
|
|
496
496
|
attr_accessor :__weel_search_positions, :__weel_positions, :__weel_main, :__weel_data, :__weel_endpoints, :__weel_connectionwrapper, :__weel_connectionwrapper_args
|
|
497
497
|
attr_reader :__weel_state, :__weel_status, :__weel_status
|
|
498
|
+
def __weel_abandon? = @__weel_abandon
|
|
498
499
|
|
|
499
500
|
# DSL-Construct for translating expressions into static parameters
|
|
500
501
|
def 🠊(code); ProcString.new(code); end
|
|
@@ -776,9 +777,10 @@ class WEEL
|
|
|
776
777
|
return if self.__weel_state == :stopping || self.__weel_state == :finishing || self.__weel_state == :stopped || Thread.current[:nolongernecessary]
|
|
777
778
|
throw :escape
|
|
778
779
|
end #}}}
|
|
779
|
-
def terminate(eid) #{{{
|
|
780
|
+
def terminate(eid,abandon=false) #{{{
|
|
780
781
|
return if __weel_is_in_search_mode
|
|
781
782
|
return if self.__weel_state == :stopping || self.__weel_state == :finishing || self.__weel_state == :stopped || Thread.current[:nolongernecessary]
|
|
783
|
+
@__weel_abandon = abandon
|
|
782
784
|
self.__weel_state = :finishing
|
|
783
785
|
end #}}}
|
|
784
786
|
def stop(position) #{{{
|
|
@@ -1128,11 +1130,11 @@ class WEEL
|
|
|
1128
1130
|
@__weel_positions = Array.new if newState == :running
|
|
1129
1131
|
@__weel_state = newState
|
|
1130
1132
|
|
|
1133
|
+
@__weel_connectionwrapper::inform_state_change @__weel_connectionwrapper_args, @__weel_state
|
|
1134
|
+
|
|
1131
1135
|
if newState == :stopping || newState == :finishing
|
|
1132
1136
|
__weel_recursive_continue(@__weel_main)
|
|
1133
1137
|
end
|
|
1134
|
-
|
|
1135
|
-
@__weel_connectionwrapper::inform_state_change @__weel_connectionwrapper_args, @__weel_state
|
|
1136
1138
|
end # }}}
|
|
1137
1139
|
|
|
1138
1140
|
end # }}}
|
|
@@ -1167,7 +1169,7 @@ public
|
|
|
1167
1169
|
nil
|
|
1168
1170
|
end # }}}
|
|
1169
1171
|
|
|
1170
|
-
# Get the state of execution (ready|running|stopping|stopped|finished|
|
|
1172
|
+
# Get the state of execution (ready|running|stopping|stopped|finished|abandoned)
|
|
1171
1173
|
def state # {{{
|
|
1172
1174
|
@dslr.__weel_state
|
|
1173
1175
|
end # }}}
|
|
@@ -1211,9 +1213,7 @@ public
|
|
|
1211
1213
|
@dslr.__weel_positions.clear
|
|
1212
1214
|
@dslr.__weel_connectionwrapper::inform_position_change(@dslr.__weel_connectionwrapper_args,ipc)
|
|
1213
1215
|
@dslr.__weel_state = :finished
|
|
1214
|
-
|
|
1215
|
-
if @dslr.__weel_state == :simulating
|
|
1216
|
-
@dslr.__weel_state = final_state
|
|
1216
|
+
@dslr.__weel_state = :abandoned if @dslr.__weel_abandon?
|
|
1217
1217
|
end
|
|
1218
1218
|
if @dslr.__weel_state == :stopping
|
|
1219
1219
|
@dslr.__weel_finalize
|
|
@@ -1286,13 +1286,4 @@ public
|
|
|
1286
1286
|
end
|
|
1287
1287
|
end
|
|
1288
1288
|
end # }}}
|
|
1289
|
-
|
|
1290
|
-
def sim # {{{
|
|
1291
|
-
stat = @dslr.__weel_state
|
|
1292
|
-
return nil unless stat == :ready || stat == :stopped
|
|
1293
|
-
@dslr.__weel_main = Thread.new do
|
|
1294
|
-
__weel_control_flow :simulating, stat
|
|
1295
|
-
end
|
|
1296
|
-
end # }}}
|
|
1297
|
-
|
|
1298
1289
|
end
|
data/weel.gemspec
CHANGED