//This file was generated from UPPAAL 4.0.2 (rev. 2491), August 2006

/*
===== Validation Properties:
*/

/*
Gate can receive (and store in queue) msg's from approaching trains.
*/
<> "gate.Occ"

/*
Train 0 can reach crossing.
*/
<> "trains(0).Cross"

/*
Train 1 can reach crossing.
*/
<> "trains(1).Cross"

/*
Train 0 can be crossing bridge while Train 1 is waiting to cross.
*/
<> ("trains(0).Cross" /\ "trains(1).Stop")

/*
Train 0 can cross bridge while the other trains are waiting to cross.
*/
<> ("trains(0).Cross" /\ "trains(1).Stop")

/*
===== Safety Properties:
*/

/*
There can never be N elements in the queue (thus the array will not overflow).
*/
<> !"gate.list[N] == 0"

/*
===== Liveness Properties:
*/

/*
Whenever a train approaches the bridge, it will eventually cross.
*/
![]("trains(0).Appr" -> <>"trains(0).Cross")

