Title: Agent Modeling Language: Behavioral Models
1Agent Modeling LanguageBehavioral Models
- Rafael Oliveira
- Ricson Santana
- VinÃcius Remigo
- Jacques Robin
2Outline
- Behavior package structure
- Basic Behavior package
- Behavior decomposition package
- Observation and effecting interactions packages
- Services package
- Communicative interactions package
3ReminderOverall AML Package Structure
4Behavior Package Structure
Behavior Decomposition
Observations and Effecting Interactions
Services
Mobility
Basic Behavior
Communicative Interactions
- The AML conceptual metamodel reuses many of the
concepts from UML - behavior, interactions, activities, state
machines, etc.
5Basic Behavior
Behavior Decomposition
Observations and Effecting Interactions
Services
Mobility
Basic Behavior
Communicative Interactions
6Basic Behavior Meta-Model
7Basic Behavior
- BehavioredSemiEntityType
- Abstract metaclasss
- Specializess Class (from UML) and
ServicedElement (from Services package) - Serves as a common superclass to all metaclasses
which can - Own Capabilities,
- Observe and/or effect their environment by means
of Perceptors and Effectors, and - Provide and/or use services by means of
ServicedPorts. - Capability
- Model an abstraction of a behavior in terms of
its - inputs, outputs, pre-conditions, and
post-conditions. - Allows using common features of all the concrete
subclasses of the Capability metaclass uniformly
8Basic Behavior Example Models
Capability
9Behavior Decomposition
Behavior Decomposition
Observations and Effecting Interactions
Services
Mobility
Basic Behavior
Communicative Interactions
10Behavior Decomposition Meta-Model
- BehaviorFragment allows
- decomposition of complex behaviors of
Behaviored-SemiEntityTypes - the means to build reusable libraries of
behaviors and related features.
11Behavior Decomposition BehaviorFragment
- Specialized BehavioredSemiEntityType used to
- Model coherent and reusable fragments of
behavior - Structural and behavioral features
- To decompose complex behaviors into simpler and
(possibly) concurrently executable fragments.
12Behavior DecompositionExample Models
Behavior Fragment
Definition of theBehavior Fragments
13Observation and effecting interactions
Behavior Decomposition
Observations and Effecting Interactions
Services
Mobility
Basic Behavior
Communicative Interactions
14Observation and effecting interactions
- Observation
- Perceives the environment, or its part
- Obtain information about its state or changes of
its state - Observations are not considered to be
interactions. - Effecting interaction
- Directly manipulating the state of another
entity - The affected entity does not need to be aware
that it is being changed
15Observation and effecting interactions Meta-Model
16Observation and effecting interactions
- Observations
- Observations are modeled by means of perceptors.
- Perceptor types are used to specify a perceptor
of that type can make. - Perceiving acts are used to specify what
perceptions their owners, or perceptors of given
type, can perform. - The specification of which entities can observe
others is modeled by a perceives (metaclass
Perceives) dependency. - Effecting Interactions
- Different aspects of effecting interactions are
modeled analogously, by means of - effectors, effector types, effecting acts,and
effects dependencies.
17Observation and effecting interactions Example
Models
PerceptorType
Perceptor
Perceives
EffectorType
Effects
Effector
18Services
Behavior Decomposition
Observations and Effecting Interactions
Services
Mobility
Basic Behavior
Communicative Interactions
19Services Meta-Model
20Services Meta-Model
- Service Specification
- Specify properties of the functionality of the
service and the way the specified service can be
accessed. - Service Elements
- Superclass to all the metaclasses that can
provide or use services - Service Provision
- Specialized Realization dependency (from UML)
between a ServiceSpecification and a
ServicedElement - Specify that the ServicedElement provides
services - Service Usage
- Specialized Usage dependency (from UML) between a
ServiceSpecification and a ServicedElement, - Specify that the ServicedElement uses or requires
(can request) services
21Services Specification
22Service Specification Example Models
Communication Diagram
Sequence Diagram
Textual Notation
23Services Element
24Service Element Example Models
Service Element
25ServicesProvision and Usage
26Service Provision and Usage Example Models
Service Specifiction
Service Element
Service Usage
Service Provision
27Communicative Interactions
Behavior Decomposition
Observations and Effecting Interactions
Services
Mobility
Basic Behavior
Communicative Interactions
28Communicative Interactions Package
- Generic extensions to UML interactions provide
the means to model - Interactions between groups of entities,
- dynamic change of an objects attributes induced
by interactions, - messages not explicitly associated with an
invocation of corresponding operations and
signals. - The agent specific extension allows the modeling
of - speech act based interactions between MAS
entities - interaction protocols.
29Communicative InteractionsMulti-lifeline
- Communicative Interactionsmulti-lifeline is a
specialized UML lifeline used to represent
(unlike UML lifeline) multiple participants in
interactions.
MultiLifeline
30Communicative InteractionsExample Models
MultiLifeline
MultiMessage
Subset
31Communicative InteractionsMulti-message,
Decoulpled Message and Palyload
32Communicative InteractionsMeta-Model
MultiMessage
DecoupledMessage
DecoupledMessagePayload
CommunicationMessage
CommunicationMessaPayload
33Communicative InteractionsExample Models
DecoupledMessagePayload
DecoupledMessage
34Communicative InteractionsExample Models
CommunicationMessagePayload
CommunicationMessage
35Communicative InteractionsSubset
Subset
36Communicative InteractionsJoin
Join
37Communicative InteractionsExample Models
Join
38Communicative InteractionsAttribute Change
AttributeChange
39Communicative InteractionsExample Models
Unaffected Lifeline
Destroy attribute
Create attribute
AttributeChange
40Behaviors in AML Strengths
- Allows the modeling of mobility more complexly
- Covers the static deployment structure
- Mobility dynamics and behavior.
- Explicit modeling of behavior fragments
- reusable libraries of capabilities,
- does not appear in any other modeling language.
- Framework for modeling advanced interactions.
- Complex modeling of non-communicative
interactions and effecting acts - Explicit modeling of perceptors and effectors
41Behaviors in AML Limitations
- Technology-specific modeling frameworks
- re-usable model libraries
- Lack specific semantics,
- e.g. What events or actions are socially
sensitive - Model special social properties
- Special actions to manipulate entity role playing
is more explicit and therefore semantically rich. - Customize and extend the generic AML modeling
constructs - Modeling of specific architectural concepts of
particular (MAS) technologies.
42?
43Communicative InteractionsMeta-Model
CommunicativeInteraction
InteractionProtocol
44Communicative InteractionsMessageTrigger
DecoupledMessageTrigger
CommunicationMessageTrigger
45Communicative InteractionsSendMessageAction
SendDecoupledMessageAction
SendCommunicationMessageAction
46Communicative InteractionsAcceptMessageAction
AcceptDecoupledMessageAction
AcceptCommunicationMessageAction
47222 CommunicationInteraction Fig 5.49
InteractionProtocol 226 DecoupledMessageTrigger 22
7 ComunicationMessageTrigger