Information Technology Reference
In-Depth Information
Algorithm 2 . Updating Norms
Require: Beliefs base NAD: adopted norms stored in the beliefs base
Require: Beliefs base NAC: activated norms stored in the beliefs base
Require: P: new perceptions
1: for all nin( NAD∪ NAC ) do
2: for all pinP do
3: if (n.Activation.unify(p)) then
4: NAD. remove(n)
5: NAC. add(n)
6: else
7: if (n.Expiration.unify(p)) then
8: NAC. remove(n)
9: NAD. add(n)
10: end if
11: end if
12: end for
13: end for
other agents by adopting new norms that specify such responsibilities (represented by
Adopting Norms task) and updates the sets of activated and adopted norms (represented
by Updating Norms task).
Adopting Norms (AN). This task recognizes from the set of receiving perceptions the
ones that describe norms. After recognizing the norms, such function reviews the set
of adopted norms applying the following verifications: (i) it checks if the new norm
unifies with one of the norms already adopted, i.e., if the incoming norm already exists
in the agent Belief Base ( Algorithm 1 from line 2 to 7), and (ii) it verifies if the agent
is the addressee of the norm, i.e., if the field Addressee of the new norm unifies with
the agent role or agent name, also stored as a belief in the Belief Base ( Algorithm 1 line
8). Finally, such function updates the set of adopted norms in the Belief Base if the new
norm does not already exist and the agent is the addressee of the norm ( Algorithm 1
line 9).
With the aim to exemplify the use of this task, let's consider the scenario presented
in Section 3 where two groups of agents are leaded by Agent A and Agent B playing
the role Rescue Entity . When these entities receive information about the three system
norms, the AN task is executed checking if the norms are not stored yet in the agent's
belief base and comparing the addressee information with the role being played by the
agents.
Updating Norms (UN). UN task updates the set of activated and adopted norms check-
ing if the fields Activation and Expiration of the norm unifies with the beliefs of the
agent. If the activation conditions unify with the beliefs, the adopted norm is activated
( Algorithm 2 from line 3 to 6). If the expiration conditions unify with the beliefs, the
norm is deactivated and stored as an adopted norm ( Algorithm 2 from line 7 to 10).
 
Search WWH ::




Custom Search