SMAS 2.0b

  A Primer

   

  7. Macros and Functions for Creating an Application

defagent name &key redefine ...............................................macro

defskill skill-name agent-name &key static-function dynamic-function ..macro

defscenario name &rest steps ................................................macro

(defscenario SC-2
   (1  MUL-1 :request MULTIPLY (6 6))  
   (3  MARCOS :inform (\"Station S-23 is down\"))
   (5  FACTORIAL :request SEND-REQUEST ((MUL-2 MULTIPLY (3 4) :basic-protocol)))
   (12 PROXY :request SEND-REQUEST ((FACTORIAL DUMB-FACTORIAL (5))))
   (15 PROXY :internal SEND-INFORM ((ALL INFORM (\"All is well\"))))
   (17 EXPERT-SYSTEM :internal SEND-INFORM 
                      ((MARCOS INFORM (\"All is up and running again\"))))
   (21 EXPERT-SYSTEM :internal SEND-REQUEST 
                      ((MARCOS ASK (\"What time is it?\")))))

create-subtask agent ..........................................................function

send-subtask agent &key to action args delay repeat-count................function
                     task-id timeout protocol

update-environment agent environment .....................................function

pending-subtasks? agent .....................................................function

static-exit agent arg ..........................................................function

dynamic-exit agent result &optional delay .................................function


Copyrignt Jean-Paul Barthès@UTC, 1998 Last update, Jan 99