Search in sources :

Example 1 with StateChangeCountDetectorVO

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

the class DataPointEditDwr method updateStateChangeCountDetector.

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

Aggregations

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