Information Technology Reference
In-Depth Information
( rule R3 ), the Acts (with their related Execution Settings ) associated to the Player
SAgent from the Tasks and associated Composition Task Rules composing the Beha-
vior of the Player ( rule R4 ).
Table 1. Indentified tasks
Task Id
Task Name
Description
T1
Walk
The player can move to a feasible cell of the Grid .
If the von Neumann neighborhood (of range 1) of the player is not empty the
player communicates its strategy to its randomly selected opponent player.
T2
Challenge
T3
Update Age
The player age is incremented by 1.
If the player's wealth level w is greater than the threshold w b a new child
player can be created in a feasible cell of its parent and endowed with w 0 and
the same strategy of the parent (unless a mutation with rate m occurs). The
wealth level of the parent player is decremented by w 0 .
T4
Fission
If the wealth level of the player is negative or its age is greater than age max the
player is removed from the Grid .
T5
Die
When the strategy of an opponent player is provided the player strategy is
communicated to the opponent and the earned payoff is added to the player's
wealth level.
T6
Accept Dare
Update Wealth
Level
If the strategy of an opponent player is provided the earned payoff is added to
the player's wealth level
T7
[else]
[a vaila ble
cell found]
[else]
Selec t an a v aila b le c ell in t h e
von Neuma nn neig hborho od
of range 1
Move to the
selected cell
Die
[ wea lt h <0 | |
age > max age ]
(T1) Walk
(T5) Die
[else]
[opponent
pla yer found]
Select an opponent p layer
in th von Neumann
neighborhood of range 1
Sen d my St rat e g y
to the opponent player
Send my Strategy
to the opponent player
Rec eive th e St rat egy
of an opponent player
Update
Wea lth Level
(T2) Challenge
(T6) Accept Dare
Increment age
by one
Update
We alth Leve l
Receive the Strategy
of an opponent player
(T3) Update Age
(T7) Update Wealth Level
Set the wealth level of the
n e w ag e n t to t h e in it ia l
wealth level w0
De crements my wealth
leve l of w0
[els e]
[ wealth level greater than
repruduction threshold]
Se lect a n ava ilable ce ll in
th e von Neumann
neighborhood of range 1
Create a new
Player Agent
Set the s trategy
of the crea ted
agen t to mine
[e ls e ]
[availab le
ce ll found]
[else ]
Compute a random value v
belonging to the interval [0,1]
Mutate strategy of
the crea ted age nt
[v<=mutation rate]
(T4) Fission
Fig. 6. The UML activity diagrams of the Player Agent tasks
Search WWH ::




Custom Search