-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from imdexsam/handle-reactive-checks-returning…
…-running Handle reactive checks returning running
- Loading branch information
Showing
9 changed files
with
148 additions
and
11 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ description = "Workflow framework based on the behavior trees" | |
authors = ["BorisZhguchev <[email protected]>"] | ||
homepage = "https://github.com/besok/forester" | ||
repository = "https://github.com/besok/forester" | ||
version = "0.4.0" | ||
version = "0.4.1" | ||
edition = "2021" | ||
license-file = "LICENSE" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import "std::actions" | ||
impl incr(key:string,default:num); | ||
|
||
// We're testing that a reactively-checked child returning running will halt any other running children. | ||
// If a running child does halt other running children, repeat(5) will be reset and b will be incremented a total of 9 times. If no halt is called, b will only be incremented 5 times. | ||
root main repeat(2) r_fallback { | ||
sequence { | ||
incr("a",0) | ||
equal(a,5) | ||
repeat(2) success() | ||
} | ||
repeat(5) incr("b",0) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import "std::actions" | ||
impl incr(key:string,default:num); | ||
|
||
// We're testing that a reactively-checked child returning running will halt any other running children. | ||
// If a running child does halt other running children, repeat(5) will be reset and b will be incremented a total of 9 times. If no halt is called, b will only be incremented 5 times. | ||
root main retry(2) r_sequence { | ||
fallback { | ||
inverter incr("a",0) | ||
inverter equal(a,5) | ||
retry(2) fail_empty() | ||
} | ||
repeat(5) incr("b",0) | ||
} |