Hvordan skrive en effektiv kravspesifikasjon

Download Report

Transcript Hvordan skrive en effektiv kravspesifikasjon

Agent Communication Language
Agent Coordination
• Agents communicate in order to achieve
better the goals of themselves or of the
society
• Coordination is a property of a system of
agents performing some activity in a shared
environment
Coordination
Knowledge Sharing
• Need: KS
– Mutual understanding of knowledge
– The communication of that knowledge
• Knowledge Sharing Effort: KSE
– Interlingua: Knowledge Interchange Format
– SRKB: Shared, Reusable Knowledge Bases
– External Interface: KQML
Interoperating Model
Ontology
• Ontology provides a set of concepts and
terms for describing thing in some domain,
while a knowledge base use those terms to
represent what is true about some real or
hypothetical world.
• Thing: Living, NonLiving
• Thing: Concrete, Abstract, Process, Object
KQML
• Knowledge Query Manipulation Language
• KQML was conceived as both a message
and a message-handling protocol to support
runtime knowledge sharing among agents
• Three layers:
– The content layer
– The message layer
– The communication layer.
KQML
KQML Statement
(ask-one
:sender Agent1
:receiver Agent2
:in-reply-to id1
:reply-with id2
:language Prolog
:ontology NYSE_TICKS
:content (Price IBM)
)
KQML in YinYang
• KQMLNode
– String getKeyWord()
– String getContent()
• KQMLParser
– String kqmlPerformative()
– KQMLNode nextNode()
– Boolean hasMoreElements()