(defmethod update :before ((a AGENT) (e UPDATE))
(when (null (timestamps a))
(push 0 (pls a))
(push 0 (fitnesses a)))
(push (timestamp e) (timestamps a))
(push (price e) (revalprices a))
(preprocess a e)
(format T ":BEFORE completed for agent ̃A and event ̃A ̃%" a e))
update
上記の方法は本から来たもので、との違いは何かを知りたいと思いました:before
。CLOS Lisp でメソッドを定義した私の理解でupdate
は、 はメソッドの名前ですが、何をするの:before
でしょうか?
最後に、最後の行は何をしますか?(format T ":BEFORE completed for agent ̃A and event ̃A ̃%" a e))