Search in sources :

Example 1 with MultistateStateDetectorVO

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

the class DataPointEditDwr method updateMultistateStateDetector.

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

Aggregations

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