Information Technology Reference
In-Depth Information
Fig. 2.
Belief+Norm Review Function
Algorithm 1.
Adopting Norms
Require:
Beliefs
base N: norms stored in the beliefs base
Require:
agent: informations about the agent, such as: name and role
Require:
Beliefs
base NA: adopted norms stored in the beliefs base
Require:
NN: new norms
1:
for all
newNorm in NN
do
2:
x = true
3:
for all
ninN
do
4:
if
(n == newNorm)
then
5:
x = false
6:
end if
7:
end for
8:
if
x
∩
((
agent.Name
==
newNorm.Addresse
)
∪
((
agent.Role
==
newNorm.Addresse
))
then
9: NA.
add(newNorm)
10:
end if
11:
end for
Fig. 3.
Norm Selection Function
4.1
Belief+Norm Review Function
Besides performing the original functionality of the
Belief Review Function
,whichis
the revision of the beliefs (represented by
Reviewing Beliefs
task), the
Belief+Norm
Review Function
(Figure 2), helps the agent on recognizing its responsibilities towards