From c85c7e7917c7b68f21625558dd04c6c731658d3b Mon Sep 17 00:00:00 2001 From: BarminaA Date: Sun, 9 Oct 2022 08:01:10 +0400 Subject: [PATCH] #64-add model for rule --- .../java/ru/ulstu/extractor/model/Rule.java | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 src/main/java/ru/ulstu/extractor/model/Rule.java diff --git a/src/main/java/ru/ulstu/extractor/model/Rule.java b/src/main/java/ru/ulstu/extractor/model/Rule.java new file mode 100644 index 0000000..2c249e7 --- /dev/null +++ b/src/main/java/ru/ulstu/extractor/model/Rule.java @@ -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; + } +}