-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update Chugen.tick() backend to use invoker
- Loading branch information
Showing
3 changed files
with
67 additions
and
79 deletions.
There are no files selected for viewing
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,17 @@ | ||
// verify passthrough Chugraph | ||
class Node extends Chugraph | ||
{ | ||
// connect inlet to output (passthrough) | ||
inlet => outlet; | ||
} | ||
|
||
// patch in the Node | ||
Step step => Node node => blackhole; | ||
// set step | ||
.5 => step.next; | ||
// let time pass | ||
1::samp => now; | ||
|
||
// check if equal (or at least equal enough) | ||
if( Math.equal(.5, step.last() ) ) | ||
<<< "success" >>>; |