27.01.2014 Views

Multiagent Systems

Multiagent Systems

Multiagent Systems

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

of. Dr. Jürgen Dix · Department of Informatics, TUC <strong>Multiagent</strong> <strong>Systems</strong>, WS 06/07 569/731<br />

8. Action/Time as Modalities 5. Verification<br />

function plan(ϕ).<br />

Returns a subset of Q for which formula ϕ holds, together with a (conditional)<br />

plan to achieve ϕ. The plan is sought within the context of concurrent<br />

game structure S = 〈Agt, Q, Π, π, o〉.<br />

case ϕ ∈ Π : return {〈q, −〉 | ϕ ∈ π(q)}<br />

case ϕ = ¬ψ : P 1 := plan(ψ);<br />

return {〈q, −〉 | q /∈ states(P 1 )}<br />

case ϕ = ψ 1 ∨ ψ 2 :<br />

P 1 := plan(ψ 1 ); P 2 := plan(ψ 2 );<br />

return {〈q, −〉 | q ∈ states(P 1 ) ∪ states(P 2 )}<br />

case ϕ = 〈〈A〉〉 ❢ ψ : return pre(A, states(plan(ψ)))<br />

case ϕ = 〈〈A〉〉□ψ :<br />

P 1 := plan(true); P 2 := plan(ψ); Q 3 := states(P 2 );<br />

while states(P 1 ) ⊈ states(P 2 )<br />

do P 1 := P 2 | states(P1 ); P 2 := pre(A, states(P 1 ))| Q3 od;<br />

return P 2 | states(P1 )<br />

case ϕ = 〈〈A〉〉ψ 1 U ψ 2 :<br />

P 1 := ∅; Q 3 := states(plan(ψ 1 )); P 2 := plan(true)| states(plan(ψ2 ));<br />

while states(P 2 ) ⊈ states(P 1 )<br />

do P 1 := P 1 ⊕ P 2 ; P 2 := pre(A, states(P 1 ))| Q3 od;<br />

return P 1<br />

end case

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

Saved successfully!

Ooh no, something went wrong!