Search in sources :

Example 1 with NegativeCusumDetectorVO

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

the class DataPointEditDwr method updateNegativeCusumDetector.

@DwrPermission(user = true)
public void updateNegativeCusumDetector(int pedId, String xid, String alias, double limit, double weight, int duration, int durationType, int alarmLevel) {
    NegativeCusumDetectorVO ped = (NegativeCusumDetectorVO) getEventDetector(pedId);
    ped.setXid(xid);
    ped.setName(alias);
    ped.setLimit(limit);
    ped.setWeight(weight);
    ped.setDuration(duration);
    ped.setDurationType(durationType);
    ped.setAlarmLevel(alarmLevel);
}
Also used : NegativeCusumDetectorVO(com.serotonin.m2m2.vo.event.detector.NegativeCusumDetectorVO) DwrPermission(com.serotonin.m2m2.web.dwr.util.DwrPermission)

Aggregations

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