Show last authors
1 [[image:attach:graphic_.png]]
2
3 == Environment: ==
4
5 * (((
6 {{{trackcontacts: int[]}}}
7
8 * (((
9 0: no signal
10 )))
11 * (((
12 1: forwards
13 )))
14 * (((
15 2: backwards
16 )))
17 * (((
18 3: uni
19 )))
20 )))
21 * (((
22 {{{crosscontacts: int[]}}}
23
24 * (((
25 0: no signal
26 )))
27 * (((
28 1: closing
29 )))
30 * (((
31 2: opening
32 )))
33 )))
34
35 == User: ==
36
37 * (((
38 {{{initial: int[] }}}
39
40 * (((
41 index: track number
42 )))
43 * (((
44 value: train number, negativ for backwards driving trains
45 )))
46 )))
47 * (((
48 {{{destination: int[]}}}
49
50 * (((
51 index. train number
52 )))
53 * (((
54 value: track number
55 )))
56 )))
57 * (((
58 {{{speeds: int[][]}}}
59
60 * (((
61 index: train number
62 )))
63 * (((
64 index: 0-3
65 )))
66 * (((
67 value: 1-127
68 )))
69 )))
70
71 == Controller: ==
72
73 * trackspeed: int[]
74 ** 0: off
75 ** 1 to 127: forward speed
76 ** -1 to -127: backward speed
77 * signals: int[]
78 ** 0: off
79 ** 1: red
80 ** 2: yellow
81 ** 3: green
82 * lamps: bool[]
83 ** true: on
84 ** false: off
85 * crosslight: int
86 ** 0: off
87 ** 1: red
88 ** 2: yellow
89 * bell: bool
90 ** true: on
91 ** false: off
92 * point: bool[]
93 ** true: branch
94 ** false: straight
95 * gate: bool
96 ** true: down
97 ** false: up
98 * reached: bool[]
99 ** index: train number
100 ** value: true: destination reached; false: destination not yet reached
101
102 == Scheduler: ==
103
104 * schedule: int[]
105 ** index: train number
106 ** value: next save track on the way to destination
107
108 \\