#64-add model for rule

This commit is contained in:
BarminaA 2022-10-09 08:01:10 +04:00
parent fd001da317
commit c85c7e7917

View File

@ -0,0 +1,67 @@
package ru.ulstu.extractor.model;
import javax.persistence.Entity;
@Entity
public class Rule extends BaseEntity {
private String measure1;
private String timeSeries1;
private String measure2;
private String timeSeries2;
private String action;
public Rule() {
}
public Rule(String measure1, String timeSeries1, String measure2, String timeSeries2, String action) {
this.measure1 = measure1;
this.timeSeries1 = timeSeries1;
this.measure2 = measure2;
this.timeSeries2 = timeSeries2;
this.action = action;
}
public String getMeasure1() {
return measure1;
}
public String getTimeSeries1() {
return timeSeries1;
}
public String getMeasure2() {
return measure2;
}
public String getTimeSeries2() {
return timeSeries2;
}
public void setMeasure1(String measure1) {
this.measure1 = measure1;
}
public void setTimeSeries1(String timeSeries1) {
this.timeSeries1 = timeSeries1;
}
public void setMeasure2(String measure2) {
this.measure2 = measure2;
}
public void setTimeSeries2(String timeSeries2) {
this.timeSeries2 = timeSeries2;
}
public String getAction() {
return action;
}
public void setAction(String action) {
this.action = action;
}
}