01.12.2012 Views

Architecture of Computing Systems (Lecture Notes in Computer ...

Architecture of Computing Systems (Lecture Notes in Computer ...

Architecture of Computing Systems (Lecture Notes in Computer ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

94 J.-P. Steghöfer et al.<br />

Choose a Role: Whenever agrec has to decide which role to execute next, it goes<br />

through requests and applies for each <strong>of</strong> the roles stored <strong>in</strong> it a fitness function<br />

f : Roles → N. In its simplest form, f is <strong>in</strong>stantiated as f(r) =(counter − t)<br />

where (r, t) ∈ applicationT imes. This will yield the highest value for the role<br />

that has not been executed the longest, thus ensur<strong>in</strong>g that each role that is<br />

applicable will eventually be executed if f(r) is maximized.<br />

Formally, the selection <strong>of</strong> the role to execute is done by evaluat<strong>in</strong>g a function<br />

max :(agents×roles) + → (agents×roles) which yields (a, r) =max(requests)<br />

where<br />

max(requests) = (ag, rnext) if∀(ag ′ ,r ′ ) ∈ requests :<br />

f(r ′ )

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!