feat: atl qui avance a en arrière
This commit is contained in:
parent
c5f03cec1a
commit
bce83ec645
|
@ -144,6 +144,12 @@ def : getInteraction() : game!Interaction =
|
||||||
->asSequence()
|
->asSequence()
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
|
helper context petrinet!Transition
|
||||||
|
def : getPlace(s : String) : petrinet!Place =
|
||||||
|
petrinet!Place.allInstances()
|
||||||
|
->select(p | p.name = s)
|
||||||
|
->asSequence()
|
||||||
|
->first();
|
||||||
|
|
||||||
|
|
||||||
rule Game2PetriNet {
|
rule Game2PetriNet {
|
||||||
|
|
|
@ -12,4 +12,4 @@ tr chemin_win lieu_Enigme*1 -> lieu_Succes*1
|
||||||
tr chemin_loose lieu_Enigme*1 -> lieu_Echec*1
|
tr chemin_loose lieu_Enigme*1 -> lieu_Echec*1
|
||||||
tr interaction_Parler lieu_Enigme*1 -> personne_Sphinx*1
|
tr interaction_Parler lieu_Enigme*1 -> personne_Sphinx*1
|
||||||
tr action_Reponse_1 personne_Sphinx*1 -> lieu_Enigme*1
|
tr action_Reponse_1 personne_Sphinx*1 -> lieu_Enigme*1
|
||||||
tr action_Reponse_2 personne_Sphinx*0 -> lieu_Enigme*1
|
tr action_Reponse_2 personne_Sphinx*1 -> lieu_Enigme*1 invalid*1
|
||||||
|
|
Loading…
Reference in a new issue