From: pimjager Date: Thu, 16 Jun 2016 09:28:08 +0000 (+0200) Subject: 2.xml voor prop weight op RedCar X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=0aa0c8c76d10a27e689c139203923943ae07460b;p=mc1516the.git 2.xml voor prop weight op RedCar --- diff --git a/uppaal/2.xml b/uppaal/2.xml index 29e4e8f..e45b155 100644 --- a/uppaal/2.xml +++ b/uppaal/2.xml @@ -3,11 +3,13 @@ // Place global declarations here. // Intermediate -const int N = 13; +//const int N=13; // Advanced -//const int N = 7 +//const int N = 7; +//easy test puzzle +const int N=3; -typedef int[0,N-1] id_c; +typedef int[0, N-1] id_c; broadcast chan up[N], down[N], left[N], right[N], start, leftRed, rightRed; @@ -48,7 +50,7 @@ void register() { - + @@ -59,7 +61,7 @@ x:=x-1 - + @@ -102,7 +104,7 @@ x:=x+1 - + @@ -113,7 +115,7 @@ y:=y-1 - + @@ -161,26 +163,56 @@ bool done = 0; grid[x][3] = true; grid[x+1][3] = true; } - + + + + + - + - + - + + + - + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + - - - + + + - - - + + - - + + // 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); @@ -221,13 +262,14 @@ 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 = RedCar(7, 2); //RED +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); -system H1, H2, V3, V4, V5, V6, H7, H8, V9, HA, VB, HC, HD, Player; +system H1, H2, V3, V4, V5, V6, H7, RED, V9, HA, VB, HC, HD, Player; +*/ // Advanced puzzle /* @@ -240,9 +282,6 @@ H6 = HorzCar(3, 5, 1, 2); H7 = HorzCar(3, 6, 3, 0); system H1, V2, V3, V4, H5, H6, H7 */ - -// List one or more processes to be composed into a system. -