From 7a9044c090d9d1f71159f709ce258b170dbbd868 Mon Sep 17 00:00:00 2001 From: Anton Skalkin Date: Mon, 3 Apr 2023 22:50:42 +0400 Subject: [PATCH] add class Target --- src/main/java/ru/ulstu/target/Target.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/main/java/ru/ulstu/target/Target.java diff --git a/src/main/java/ru/ulstu/target/Target.java b/src/main/java/ru/ulstu/target/Target.java new file mode 100644 index 0000000..bd11e58 --- /dev/null +++ b/src/main/java/ru/ulstu/target/Target.java @@ -0,0 +1,22 @@ +package ru.ulstu.target; + +import ru.ulstu.datamodel.exception.ModelingException; +import ru.ulstu.datamodel.ts.TimeSeries; + +import java.lang.reflect.InvocationTargetException; +import java.util.concurrent.ExecutionException; + +public abstract class Target { + private final String name; + + public Target(String name) { + this.name = name; + } + + public String getName() { + return name; + } + + public abstract TimeSeries calculate(TimeSeries model) throws ModelingException, ExecutionException, InterruptedException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException; + +}