Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
Class.WTestExtend.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 
7 include_once ("FDL/Class.WDoc.php");
8 
9 class WTestExtend extends WDoc
10 {
11  var $attrPrefix = "WAN";
12 
13  const N1 = "N1";
14  const N2 = "N2";
15  const SA = "SA";
16  const SB = "SB";
17  const SC = "SC";
18  const SD = "SD";
19  const SE = "SE";
20  const SF = "SF";
21  const SG = "SG";
22  const SH = "SH";
23  const SI = "SI";
24  const SJ = "SJ";
25  const SK = "SK";
26  const SL = "SL";
27  const SM = "SM";
28  const SN = "SN";
29  const SO = "SO";
30  const SP = "SP";
31  const SQ = "SQ";
32  const SR = "SR";
33  const SS = "SS";
34  const ST = "ST";
35  const SU = "SU";
36  const SV = "SV";
37  const SW = "SW";
38  const SX = "SX";
39  const SY = "SY";
40  const SZ = "SZ";
41 
42  const T1 = "T1";
43  const T2 = "T2";
44  const T3 = "T3";
45  const T4 = "T4";
46  const T5 = "T5";
47  const T6 = "T6";
48  const T7 = "T7";
49  const T8 = "T8";
50  const T9 = "T9";
51  const T10 = "T10";
52  const T11 = "T11";
53  const T12 = "T12";
54  const T13 = "T13";
55  const T14 = "T14";
56  const T15 = "T15";
57  const T16 = "T16";
58  const T17 = "T17";
59  const T18 = "T18";
60  const T19 = "T19";
61  const T20 = "T20";
62  const T21 = "T21";
63  const T22 = "T22";
64  const T23 = "T23";
65  const T24 = "T24";
66  const T25 = "T25";
67  const T26 = "T26";
68  const T27 = "T27";
69  const T28 = "T28";
70  const T29 = "T29";
71  const T30 = "T30";
72  const T31 = "T31";
73  const T32 = "T32";
74  const T33 = "T33";
75  const T34 = "T34";
76  const T35 = "T35";
77  const T36 = "T36";
78  const T37 = "T37";
79  const T38 = "T38";
80  const T39 = "T39";
81  var $firstState = self::SA;
82  var $transitions = array(
83  self::T1 => array(
84 
85  "m0" => "t5m0",
86  "m1" => "t5m1",
87  "m2" => "t5m2",
88  "m3" => "t5m3"
89  ) ,
90  self::T2 => array(
91 
92  "m0" => "t5m0",
93  "m1" => "t5m1",
94  "m2" => "t5m2",
95  "m3" => "t5m3"
96  ) ,
97  self::T3 => array(
98 
99  "m0" => "t5m0",
100  "m1" => "t5m1",
101  "m2" => "t5m2",
102  "m3" => "t5m3"
103  ) ,
104  self::T4 => array(
105 
106  "m0" => "t5m0",
107  "m1" => "t5m1",
108  "m2" => "t5m2",
109  "m3" => "t5m3"
110  ) ,
111  self::T5 => array(
112  "m0" => "t5m0",
113  "m1" => "t5m1",
114  "m2" => "t5m2",
115  "m3" => "t5m3"
116  ) ,
117  self::T6 => array(
118  "m0" => "t5m0",
119  "m1" => "t5m1",
120  "m2" => "t5m2",
121  "m3" => "t5m3"
122  ) ,
123  self::T7 => array(
124  "m0" => "t5m0",
125  "m1" => "t5m1",
126  "m2" => "t5m2",
127  "m3" => "t5m3"
128  ) ,
129  self::T8 => array(
130  "m0" => "t5m0",
131  "m1" => "t5m1",
132  "m2" => "t5m2",
133  "m3" => "t5m3"
134  ) ,
135  self::T9 => array(
136  "m0" => "t5m0",
137  "m1" => "t5m1",
138  "m2" => "t5m2",
139  "m3" => "t5m3"
140  ) ,
141  self::T10 => array(
142  "m0" => "t5m0",
143  "m1" => "t5m1",
144  "m2" => "t5m2",
145  "m3" => "t5m3"
146  ) ,
147  self::T11 => array(
148  "m0" => "t5m0",
149  "m1" => "t5m1",
150  "m2" => "t5m2",
151  "m3" => "t5m3"
152  ) ,
153  self::T12 => array(
154  "m0" => "t5m0",
155  "m1" => "t5m1",
156  "m2" => "t5m2",
157  "m3" => "t5m3"
158  ) ,
159  self::T13 => array(
160  "m0" => "t5m0",
161  "m1" => "t5m1",
162  "m2" => "t5m2",
163  "m3" => "t5m3"
164  ) ,
165  self::T14 => array(
166  "m0" => "t5m0",
167  "m1" => "t5m1",
168  "m2" => "t5m2",
169  "m3" => "t5m3"
170  ) ,
171  self::T15 => array(
172  "m0" => "t5m0",
173  "m1" => "t5m1",
174  "m2" => "t5m2",
175  "m3" => "t5m3"
176  ) ,
177  self::T16 => array(
178  "m0" => "t5m0",
179  "m1" => "t5m1",
180  "m2" => "t5m2",
181  "m3" => "t5m3"
182  ) ,
183  self::T17 => array(
184  "m0" => "t5m0",
185  "m1" => "t5m1",
186  "m2" => "t5m2",
187  "m3" => "t5m3"
188  ) ,
189  self::T18 => array(
190  "m0" => "t5m0",
191  "m1" => "t5m1",
192  "m2" => "t5m2",
193  "m3" => "t5m3"
194  ) ,
195  self::T19 => array(
196  "m0" => "t5m0",
197  "m1" => "t5m1",
198  "m2" => "t5m2",
199  "m3" => "t5m3"
200  ) ,
201  self::T20 => array(
202  "m0" => "t5m0",
203  "m1" => "t5m1",
204  "m2" => "t5m2",
205  "m3" => "t5m3"
206  ) ,
207  self::T21 => array(
208  "m0" => "t5m0",
209  "m1" => "t5m1",
210  "m2" => "t5m2",
211  "m3" => "t5m3"
212  ) ,
213  self::T22 => array(
214  "m0" => "t5m0",
215  "m1" => "t5m1",
216  "m2" => "t5m2",
217  "m3" => "t5m3"
218  ) ,
219  self::T23 => array(
220  "m0" => "t5m0",
221  "m1" => "t5m1",
222  "m2" => "t5m2",
223  "m3" => "t5m3"
224  ) ,
225  self::T24 => array(
226  "m0" => "t5m0",
227  "m1" => "t5m1",
228  "m2" => "t5m2",
229  "m3" => "t5m3"
230  ) ,
231  self::T25 => array(
232  "m0" => "t5m0",
233  "m1" => "t5m1",
234  "m2" => "t5m2",
235  "m3" => "t5m3"
236  ) ,
237  self::T26 => array(
238  "m0" => "t5m0",
239  "m1" => "t5m1",
240  "m2" => "t5m2",
241  "m3" => "t5m3"
242  ) ,
243  self::T27 => array(
244  "m0" => "t5m0",
245  "m1" => "t5m1",
246  "m2" => "t5m2",
247  "m3" => "t5m3"
248  ) ,
249  self::T28 => array(
250  "m0" => "t5m0",
251  "m1" => "t5m1",
252  "m2" => "t5m2",
253  "m3" => "t5m3"
254  ) ,
255  self::T29 => array(
256  "m0" => "t5m0",
257  "m1" => "t5m1",
258  "m2" => "t5m2",
259  "m3" => "t5m3"
260  ) ,
261  self::T30 => array(
262  "m0" => "t5m0",
263  "m1" => "t5m1",
264  "m2" => "t5m2",
265  "m3" => "t5m3"
266  ) ,
267  self::T31 => array(
268  "m0" => "t5m0",
269  "m1" => "t5m1",
270  "m2" => "t5m2",
271  "m3" => "t5m3"
272  ) ,
273  self::T32 => array(
274  "m0" => "t5m0",
275  "m1" => "t5m1",
276  "m2" => "t5m2",
277  "m3" => "t5m3"
278  ) ,
279  self::T33 => array(
280  "m0" => "t5m0",
281  "m1" => "t5m1",
282  "m2" => "t5m2",
283  "m3" => "t5m3"
284  ) ,
285  self::T34 => array(
286  "m0" => "t5m0",
287  "m1" => "t5m1",
288  "m2" => "t5m2",
289  "m3" => "t5m3"
290  ) ,
291  self::T35 => array(
292  "m0" => "t5m0",
293  "m1" => "t5m1",
294  "m2" => "t5m2",
295  "m3" => "t5m3"
296  ) ,
297  self::T36 => array(
298  "m0" => "t5m0",
299  "m1" => "t5m1",
300  "m2" => "t5m2",
301  "m3" => "t5m3"
302  ) ,
303  self::T37 => array(
304  "m0" => "t5m0",
305  "m1" => "t5m1",
306  "m2" => "t5m2",
307  "m3" => "t5m3"
308  ) ,
309  self::T38 => array(
310  "m0" => "t5m0",
311  "m1" => "t5m1",
312  "m2" => "t5m2",
313  "m3" => "t5m3"
314  ) ,
315  self::T39 => array(
316  "m0" => "t5m0",
317  "m1" => "t5m1",
318  "m2" => "t5m2",
319  "m3" => "t5m3"
320  )
321  );
322 
323  var $cycle = array(
324  array(
325  "e1" => self::N1,
326  "e2" => self::SA,
327  "t" => self::T1
328  ) ,
329  array(
330  "e1" => self::N1,
331  "e2" => self::SB,
332  "t" => self::T2
333  ) ,
334  array(
335  "e1" => self::N1,
336  "e2" => self::SC,
337  "t" => self::T3
338  ) ,
339  array(
340  "e1" => self::N1,
341  "e2" => self::SD,
342  "t" => self::T4
343  ) ,
344  array(
345  "e1" => self::N1,
346  "e2" => self::SE,
347  "t" => self::T5
348  ) ,
349  array(
350  "e1" => self::N1,
351  "e2" => self::SF,
352  "t" => self::T6
353  ) ,
354  array(
355  "e1" => self::N1,
356  "e2" => self::SG,
357  "t" => self::T7
358  ) ,
359  array(
360  "e1" => self::N1,
361  "e2" => self::SH,
362  "t" => self::T8
363  ) ,
364  array(
365  "e1" => self::SA,
366  "e2" => self::SB,
367  "t" => self::T9
368  ) ,
369  array(
370  "e1" => self::SB,
371  "e2" => self::SC,
372  "t" => self::T10
373  ) ,
374  array(
375  "e1" => self::SC,
376  "e2" => self::SD,
377  "t" => self::T11
378  ) ,
379  array(
380  "e1" => self::SD,
381  "e2" => self::SE,
382  "t" => self::T12
383  ) ,
384  array(
385  "e1" => self::SE,
386  "e2" => self::SF,
387  "t" => self::T13
388  ) ,
389  array(
390  "e1" => self::SF,
391  "e2" => self::SG,
392  "t" => self::T14
393  ) ,
394  array(
395  "e1" => self::SG,
396  "e2" => self::SH,
397  "t" => self::T15
398  ) ,
399  array(
400  "e1" => self::SH,
401  "e2" => self::SA,
402  "t" => self::T16
403  ) ,
404 
405  array(
406  "e1" => self::N1,
407  "e2" => self::N2,
408  "t" => self::T17
409  ) ,
410  array(
411  "e1" => self::N2,
412  "e2" => self::N1,
413  "t" => self::T18
414  ) ,
415 
416  array(
417  "e1" => self::N2,
418  "e2" => self::SI,
419  "t" => self::T19
420  ) ,
421  array(
422  "e1" => self::N2,
423  "e2" => self::SJ,
424  "t" => self::T20
425  ) ,
426  array(
427  "e1" => self::N2,
428  "e2" => self::SK,
429  "t" => self::T21
430  ) ,
431  array(
432  "e1" => self::N2,
433  "e2" => self::SL,
434  "t" => self::T22
435  ) ,
436  array(
437  "e1" => self::N2,
438  "e2" => self::SM,
439  "t" => self::T23
440  ) ,
441  array(
442  "e1" => self::N2,
443  "e2" => self::SN,
444  "t" => self::T24
445  ) ,
446  array(
447  "e1" => self::N2,
448  "e2" => self::SO,
449  "t" => self::T25
450  ) ,
451  array(
452  "e1" => self::N2,
453  "e2" => self::SP,
454  "t" => self::T26
455  ) ,
456  array(
457  "e1" => self::SI,
458  "e2" => self::SJ,
459  "t" => self::T27
460  ) ,
461  array(
462  "e1" => self::SJ,
463  "e2" => self::SK,
464  "t" => self::T28
465  ) ,
466  array(
467  "e1" => self::SK,
468  "e2" => self::SL,
469  "t" => self::T29
470  ) ,
471  array(
472  "e1" => self::SL,
473  "e2" => self::SM,
474  "t" => self::T30
475  ) ,
476  array(
477  "e1" => self::SM,
478  "e2" => self::SN,
479  "t" => self::T31
480  ) ,
481  array(
482  "e1" => self::SN,
483  "e2" => self::SO,
484  "t" => self::T32
485  ) ,
486  array(
487  "e1" => self::SO,
488  "e2" => self::SP,
489  "t" => self::T33
490  ) ,
491  array(
492  "e1" => self::SP,
493  "e2" => self::SI,
494  "t" => self::T34
495  )
496  );
497 
498 
499  function t2m1($newstate)
500  {
501  return '';
502  }
503 
504  function t2m0($newstate)
505  {
506  return '';
507  }
508  function t1m0($newstate)
509  {
510  return "m0 forbidden";
511  }
512  function t3m3($newstate)
513  {
514  return "m3 pass";
515  }
516  function t4m0($newstate)
517  {
518  return "";
519  }
520  function t4m1($newstate)
521  {
522  return "m1 forbidden";
523  }
524  function t5m0($newstate)
525  {
526  return "";
527  }
528  function t5m1($newstate)
529  {
530  return "";
531  }
532  function t5m2($newstate)
533  {
534  return "T5 m2 pass";
535  }
536  function t5m3($newstate)
537  {
538  return "T5 m3 pass";
539  }
540 }
541 ?>
← centre documentaire © anakeen