use of com.infiniteautomation.mango.rest.latest.model.time.TimePeriod in project ma-modules-public by infiniteautomation.
the class AbstractPollingDataSourceModel method fromVO.
@Override
public void fromVO(T vo) {
super.fromVO(vo);
this.pollPeriod = new TimePeriod(vo.getUpdatePeriods(), TimePeriodType.convertTo(vo.getUpdatePeriodType()));
quantize = vo.isQuantize();
useCron = vo.isUseCron();
cronPattern = vo.getCronPattern();
}
use of com.infiniteautomation.mango.rest.latest.model.time.TimePeriod in project ma-modules-public by infiniteautomation.
the class PurgeSettings method fromVO.
public void fromVO(DataSourceVO vo) {
this.override = vo.isPurgeOverride();
this.frequency = new TimePeriod(vo.getPurgePeriod(), TimePeriodType.convertTo(vo.getPurgeType()));
}
use of com.infiniteautomation.mango.rest.latest.model.time.TimePeriod in project ma-modules-public by infiniteautomation.
the class RateOfChangeEventDetectorModel method fromVO.
@Override
public void fromVO(RateOfChangeDetectorVO vo) {
super.fromVO(vo);
this.rateOfChangeThreshold = vo.getRateOfChangeThreshold();
this.rateOfChangeThresholdUnit = TimePeriodType.convertTo(vo.getRateOfChangeThresholdPeriodType());
this.useResetThreshold = vo.isUseResetThreshold();
this.resetThreshold = vo.getResetThreshold();
this.comparisonMode = vo.getComparisonMode();
this.calculationMode = vo.getCalculationMode();
this.rateOfChangePeriod = new TimePeriod(vo.getRateOfChangePeriods(), TimePeriodType.convertTo(vo.getRateOfChangePeriodType()));
this.useAbsoluteValue = vo.isUseAbsoluteValue();
}
use of com.infiniteautomation.mango.rest.latest.model.time.TimePeriod in project ma-modules-public by infiniteautomation.
the class TimeoutDetectorModel method fromVO.
@Override
public void fromVO(T vo) {
super.fromVO(vo);
this.duration = new TimePeriod(vo.getDuration(), TimePeriodType.convertTo(vo.getDurationType()));
}
Aggregations