Examples of LineNotFoundException


Examples of org.housecream.restmcu.api.LineNotFoundException

    @Override
    public RestMcuLine getLine(Integer lineId) throws LineNotFoundException {
        LineInfo lineInfo = lines.get(lineId);
        if (lineInfo == null) {
            throw new LineNotFoundException("line not found" + lineId);
        }
        return lineInfo.getDescription();
    }
View Full Code Here

Examples of org.housecream.restmcu.api.LineNotFoundException

    @Override
    public RestMcuLineSettings getLineSettings(Integer lineId) throws LineNotFoundException, RestMcuUpdateException {
        LineInfo lineInfo = lines.get(lineId);
        if (lineInfo == null) {
            throw new LineNotFoundException("line not found" + lineId);
        }
        return lineInfo.getSettings();
    }
View Full Code Here

Examples of org.housecream.restmcu.api.LineNotFoundException

    @Override
    public void setLineSettings(Integer lineId, RestMcuLineSettings lineSettings) throws LineNotFoundException,
            RestMcuUpdateException {
        LineInfo lineInfo = lines.get(lineId);
        if (lineInfo == null) {
            throw new LineNotFoundException("line not found" + lineId);
        }

        if (lineSettings.getName() != null) {
            lineInfo.getSettings().setName(lineSettings.getName());
        }
View Full Code Here

Examples of org.housecream.restmcu.api.LineNotFoundException

    @Override
    public Float getLineValue(Integer lineId) throws LineNotFoundException {
        LineInfo lineInfo = lines.get(lineId);
        if (lineInfo == null) {
            throw new LineNotFoundException("line not found" + lineId);
        }
        return lineInfo.getValue();
    }
View Full Code Here

Examples of org.housecream.restmcu.api.LineNotFoundException

    @Override
    public void setLineValue(Integer lineId, Float value) throws LineNotFoundException, RestMcuUpdateException {
        LineInfo lineInfo = lines.get(lineId);
        if (lineInfo == null) {
            throw new LineNotFoundException("line not found" + lineId);
        }
        lineInfo.setValue(value);
        lineInfo.setDateLatch(new Date());
        lineInfo.getValueLatch().countDown();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.