Search in sources :

Example 1 with BinaryStateDetectorVO

use of com.serotonin.m2m2.vo.event.detector.BinaryStateDetectorVO in project ma-core-public by infiniteautomation.

the class DataPointEditDwr method updateBinaryStateDetector.

@DwrPermission(user = true)
public void updateBinaryStateDetector(int pedId, String xid, String alias, boolean state, int duration, int durationType, int alarmLevel) {
    BinaryStateDetectorVO ped = (BinaryStateDetectorVO) getEventDetector(pedId);
    ped.setXid(xid);
    ped.setName(alias);
    ped.setState(state);
    ped.setDuration(duration);
    ped.setDurationType(durationType);
    ped.setAlarmLevel(alarmLevel);
}
Also used : BinaryStateDetectorVO(com.serotonin.m2m2.vo.event.detector.BinaryStateDetectorVO) DwrPermission(com.serotonin.m2m2.web.dwr.util.DwrPermission)

Aggregations

BinaryStateDetectorVO (com.serotonin.m2m2.vo.event.detector.BinaryStateDetectorVO)1 DwrPermission (com.serotonin.m2m2.web.dwr.util.DwrPermission)1