Skip to content

Commit

Permalink
Updated task-creator, added system-time-tick to declare and added (de…
Browse files Browse the repository at this point in the history
…fn aname :task-creator)
  • Loading branch information
TonyLo1 committed Apr 1, 2016
1 parent e791284 commit dcc9902
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/narjure/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
(defn create-system-actors
"Spawns all actors which self register!"
[]
(spawn anticipated-event)
(spawn active-concept-collator)
(spawn concept-creator)
(spawn forgettable-concept-collator)
(spawn general-inferencer)
Expand Down
6 changes: 4 additions & 2 deletions src/narjure/perception_action/task_creator.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[taoensso.timbre :refer [debug]])
(:refer-clojure :exclude [promise await]))

(declare task-creator sentence)
(declare task-creator sentence system-time-tick)

(defactor task-creator
"Creates task from Sentence
Expand All @@ -14,9 +14,11 @@
{:sentence-msg sentence
:system-time-tick-msg system-time-tick})

(def aname :task-creator)

(defn sentence [_ _]
(debug aname "process-sentence"))

(defn system-time-tick [_ state]
;(debug :system-time (str "process-system-time-tick " state))
(debug aname "process-system-time-tick")
(inc state))

0 comments on commit dcc9902

Please sign in to comment.