User Tools

Site Tools


zalozeni:classes:instrumentss

InstrumentSettingsService

InstrumentSettingsService je jednoducha service umoznujici vycitani knfigurace instrumentu z DB (instrument je zpravidla konfigurovan jak z config.ini (nastaveni pripojeni), tak z DB (korekce teploty, kalibrace))

public class DokuwikiInstrumentSettingsService extends InstrumentSettingsService {
 
	private final static String TEMP_CORRECTIONER = "temp_correctioner";
 
	public DokuwikiInstrumentSettingsService(Instrument instrument) {
		super(instrument);
	}
 
	public String getTempCorrectioner() {
		try {
			return loadStringValue(TEMP_CORRECTIONER);
		} catch (ValueNotFoundException e) {
			return "";
		}
	}
 
	public void saveTempCorrectioner(String correctioner) {
		saveStringValue(correctioner, TEMP_CORRECTIONER);
	}
 
}
zalozeni/classes/instrumentss.txt · Last modified: 2016/07/22 11:21 by jlochman