|
|
@ -289,12 +289,14 @@ public class PowersParser { |
|
|
|
|
|
|
|
|
|
|
|
// Parse power conditions
|
|
|
|
// Parse power conditions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (conditionString.toString().isEmpty() == false) { |
|
|
|
String[] conditions = conditionString.toString().split("\n"); |
|
|
|
String[] conditions = conditionString.toString().split("\n"); |
|
|
|
|
|
|
|
|
|
|
|
for (String condition : conditions) { |
|
|
|
for (String condition : conditions) { |
|
|
|
String[] parameters = condition.trim().split("\\s+"); |
|
|
|
String[] parameters = condition.trim().split("\\s+"); |
|
|
|
powerEntry.conditions.put(parameters[0], Float.parseFloat(parameters[1])); |
|
|
|
powerEntry.conditions.put(parameters[0], Float.parseFloat(parameters[1])); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
Logger.error(powerEntry.power_id + " " + e); |
|
|
|
Logger.error(powerEntry.power_id + " " + e); |
|
|
|