feat: atl qui avance a en arrière

This commit is contained in:
Guillotin Damien 2021-12-10 15:31:43 +01:00
parent c5f03cec1a
commit bce83ec645
2 changed files with 7 additions and 1 deletions

View file

@ -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 {

View file

@ -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