register.clp%
来自「人工智能中Agent开发包。多 Agent 系统是处理自治 Agent 之间知识」· CLP% 代码 · 共 32 行
CLP%
32 行
/*
This software was produced as a part of research
activities. It is not intended to be used as commercial
or industrial software by any organisation. Except as
explicitly stated, no guarantees are given as to its
reliability or trustworthiness if used for purposes other
than those for which it was originally intended.
(c) British Telecommunications plc 1999.
*/
(:Rulebase Register
(registerWithEnvironment
?aN <- (agentsName (name ?var6))
=>
(send_message (type inform) (content ?aN) (receiver Environment))
)
(exitedMaze9
?me <- (mazeExited (id ?var6))
?obst <- (obstacle)
?aR <- (agentRegistered (name ?var19))
?tM <- (thisMove)
(agentsName (name ?var33))
=>
(retract ?me)
(retract ?obst)
(retract ?aR)
(retract ?tM)
(assert (thisMove (west false) (east false) (south false) (north false) (id ?var33)))
)
)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?