Ignore:
Timestamp:
01/31/2011 01:13:47 PM (10 years ago)
Author:
dave
Message:

started fatima code and remote companion sprite update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scenarios/GerminationX/oak/src/oak/remote_agent.clj

    r437 r898  
    2020   java.io.IOException 
    2121   java.util.Random 
     22   java.io.BufferedReader 
     23   java.io.InputStreamReader 
    2224   FAtiMA.util.parsers.SocketListener 
    2325   FAtiMA.autobiographicalMemory.AutobiographicalMemory)) 
     
    3335  :said 
    3436  :done 
    35   :random) 
     37  :random 
     38  :reader) 
    3639 
    3740(def remote-agent-properties (accessor remote-agent :properties)) 
     
    4548(def remote-agent-done (accessor remote-agent :done)) 
    4649(def remote-agent-random (accessor remote-agent :random)) 
     50(def remote-agent-reader (accessor remote-agent :reader)) 
    4751 
    4852(defn remote-agent-add-property [agent property] 
     
    5256  ;(.configureBlocking socket false) 
    5357  ;(. (AutobiographicalMemory/GetInstance) setSelf name) 
    54   (let [toks (.split (read-msg socket) " ")] 
     58  (let [reader (BufferedReader. 
     59                (InputStreamReader. 
     60                 (.getInputStream (.socket socket)))) 
     61        toks (.split (read-msg reader) " ")] 
    5562    (send-msg socket "OK") 
    5663    (struct 
     
    7077     '() 
    7178     '() 
    72      (new java.util.Random)))) 
     79     (new java.util.Random) 
     80     reader 
     81     ))) 
    7382 
Note: See TracChangeset for help on using the changeset viewer.