Rev 1573 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1573 | Rev 1578 | ||
---|---|---|---|
Line 119... | Line 119... | ||
119 | } |
119 | } |
120 | } |
120 | } |
Line 121... | Line 121... | ||
121 | 121 | ||
122 | private static int substituteVariables(String s_value) { |
122 | private static int substituteVariables(String s_value) { |
123 | int numberOfHighestVar = 255; |
123 | int numberOfHighestVar = 255; |
124 | int numberOfLowestVar = numberOfHighestVar |
- | |
125 | - ConfigSet.NUMBER_OF_VARIABLES; |
124 | int numberOfLowestVar = numberOfHighestVar - ConfigSet.NUMBER_OF_VARIABLES + 1; |
126 | for (int i = 0; i < ConfigSet.NUMBER_OF_VARIABLES; i++) { |
125 | for (int i = 0; i < ConfigSet.NUMBER_OF_VARIABLES; i++) { |
127 | String varName = "var" + i; |
126 | String varName = "var" + i; |
128 | if (varName.equals(s_value)) { |
127 | if (varName.equals(s_value)) { |
129 | System.out.println("Substing: " + s_value + "-->" |
- | |
130 | + (numberOfLowestVar + i)); |
128 | System.out.println("Substing: " + s_value + "-->" + (numberOfLowestVar + i)); |
131 | return numberOfLowestVar + i; |
129 | return numberOfLowestVar + i; |
132 | } |
130 | } |
133 | } |
131 | } |
134 | return -1; |
132 | return -1; |