View Javadoc
1 package org.smartcomps.twister.engine.priv.core.definition.impl; 2 3 import org.smartcomps.twister.engine.priv.core.definition.AlarmEvent; 4 5 public class AlarmEventImpl implements AlarmEvent { 6 7 private Long id; 8 private String timeExpression; 9 private int type; 10 11 public Long getId() { 12 return id; 13 } 14 15 public void setId(Long id) { 16 this.id = id; 17 } 18 19 public String getTimeExpression() { 20 return timeExpression; 21 } 22 23 public void setTimeExpression(String timeExpression) { 24 this.timeExpression = timeExpression; 25 } 26 27 public int getType() { 28 return type; 29 } 30 31 public void setType(int type) { 32 if (type != DURATION_EXPR && type != DEADLINE_EXPR) { 33 throw new IllegalArgumentException("Type value must be either DURATION_EXPR or DEADLINE_EXPR."); 34 } 35 this.type = type; 36 } 37 38 public void setTimeExpression(String timeExpression, int type) { 39 setTimeExpression(timeExpression); 40 setType(type); 41 } 42 }

This page was automatically generated by Maven