public void setParameter(String command) throws NumberFormatException { ParameterProfile parameter = commands.get(command); commands.remove(command); int value = getValue(command); parameter.setValue(value); commands.put(parameter.getCommand(), parameter); }
public void setValue(String command, int value) { // Toast.makeText(ctx,command +" = " +value,Toast.LENGTH_SHORT).show(); writeWord(command + "=" + Integer.toString(value)); ParameterProfile parameter = commands.get(command); commands.remove(command); parameter.setValue(value); commands.put(parameter.getCommand(), parameter); }