-
Notifications
You must be signed in to change notification settings - Fork 4
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 #8 from jarradh/update-actors
Update Actors
- Loading branch information
Showing
6 changed files
with
26 additions
and
105 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
(ns narjure.perception-action.task-creator | ||
(:require | ||
[narjure.actor.utils :refer [defactor]] | ||
[taoensso.timbre :refer [debug]]) | ||
(:refer-clojure :exclude [promise await])) | ||
|
||
(declare task-creator sentence) | ||
|
||
(defactor task-creator | ||
"Creates task from Sentence | ||
- Sets source property based on origin | ||
- Add serial-no | ||
- Converts tense to occurrence time (has system time in state)" | ||
{:sentence-msg sentence | ||
:system-time-tick-msg system-time-tick}) | ||
|
||
(defn sentence [_ _] | ||
(debug aname "process-sentence")) | ||
|
||
(defn system-time-tick [_ state] | ||
;(debug :system-time (str "process-system-time-tick " state)) | ||
(inc state)) |