X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=uppaal%2F2.xml;h=25de23c3aafb9017f13e50f10bffa8b1aecda512;hb=fc8b6c60a2187cb452e91441b3cd18e116d86d2e;hp=ad68966fea13047224d99da561d55db5d1098904;hpb=528a1a39272f8d30c30a2ce2f0660384a018cd07;p=mc1516the.git diff --git a/uppaal/2.xml b/uppaal/2.xml index ad68966..25de23c 100644 --- a/uppaal/2.xml +++ b/uppaal/2.xml @@ -2,64 +2,259 @@ // Place global declarations here. +// Intermediate +//const int N=13; +// Advanced +//const int N = 7; +//easy test puzzle +const int N=3; -const int N = 13; -typedef int[0,N-1] id_c; +typedef int[0, N-1] id_c; -chan up[N], down[N], left[N], right[N]; +broadcast chan up[N], down[N], left[N], right[N], start, leftRed, rightRed; + +chan reg, finish; + +bool grid[6][6]; + + // Place template instantiations here. + + + +//easy test puzzle +RED = RedCar(0,2); +V1 = VertCar(2, 1, 4, 3); +V2 = VertCar(3, 2, 5, 2); +system RED, V1, V2, Player; + +// Intermediate puzzle +/* H1 = HorzCar(2, 0, 0, 5); H2 = HorzCar(2, 1, 2, 5); V3 = VertCar(2, 2, 4, 4); @@ -67,15 +262,33 @@ V4 = VertCar(2, 3, 2, 3); V5 = VertCar(3, 4, 5, 2); V6 = VertCar(2, 5, 1, 3); H7 = HorzCar(2, 6, 3, 4); -H8 = HorzCar(2, 7, 3, 2); +RED = RedCar(7, 2); //RED V9 = VertCar(3, 8, 0, 0); HA = HorzCar(2, 9, 1, 0); VB = VertCar(2, 10, 3, 0); HC = HorzCar(2, 11, 4, 1); HD = HorzCar(2, 12, 4, 0); -// List one or more processes to be composed into a system. -system H1, H2, V3, V4, V5, V6, H7, H8, V9, HA, VB, HC, HD; +system H1, H2, V3, V4, V5, V6, H7, RED, V9, HA, VB, HC, HD, Player; +*/ + +// Advanced puzzle +/* +H1 = HorzCar(2, 0, 0, 5); +V2 = VertCar(2, 1, 2, 4); +V3 = VertCar(3, 2, 3, 3); +V4 = VertCar(3, 3, 0, 2); +H5 = HorzCar(2, 4, 1, 3); +H6 = HorzCar(3, 5, 1, 2); +H7 = HorzCar(3, 6, 3, 0); +system H1, V2, V3, V4, H5, H6, H7 +*/ + + E<> Player.done == 1 + + + +