Skip to content

Commit

Permalink
Updated scope
Browse files Browse the repository at this point in the history
  • Loading branch information
gr812b committed Dec 22, 2024
1 parent 55ef661 commit 9f02dca
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import com.mcmasterbaja.model.AnalyzerEnum;
import com.mcmasterbaja.model.AnalyzerParams;
import com.opencsv.exceptions.CsvException;
import jakarta.enterprise.context.RequestScoped;

import jakarta.enterprise.context.Dependent;
import jakarta.inject.Inject;
import java.io.BufferedWriter;
import java.io.File;
Expand All @@ -14,7 +15,7 @@
import java.util.List;
import org.jboss.logging.Logger;

@RequestScoped
@Dependent
@AnalyzerType(AnalyzerEnum.ACCEL_CURVE)
public class AccelCurveAnalyzer extends Analyzer {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
import com.opencsv.CSVReader;
import com.opencsv.ICSVWriter;
import com.opencsv.exceptions.CsvValidationException;
import jakarta.enterprise.context.RequestScoped;
import jakarta.enterprise.context.Dependent;
import jakarta.inject.Inject;
import java.io.IOException;
import org.jboss.logging.Logger;

@RequestScoped
@Dependent
@AnalyzerType(AnalyzerEnum.CONSTANT_ADDER)
public class ConstantAdderAnalyzer extends Analyzer {
private double a;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
import com.opencsv.CSVReader;
import com.opencsv.ICSVWriter;
import com.opencsv.exceptions.CsvValidationException;
import jakarta.enterprise.context.RequestScoped;
import jakarta.enterprise.context.Dependent;
import jakarta.inject.Inject;
import java.io.IOException;
import org.jboss.logging.Logger;

@RequestScoped
@Dependent
@AnalyzerType(AnalyzerEnum.CUBIC)
public class CubicAnalyzer extends Analyzer {
// Form of y = ax^3 + bx^2 + cx + d
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
import com.opencsv.CSVReader;
import com.opencsv.ICSVWriter;
import com.opencsv.exceptions.CsvException;
import jakarta.enterprise.context.RequestScoped;
import jakarta.enterprise.context.Dependent;
import jakarta.inject.Inject;
import java.io.IOException;
import org.jboss.logging.Logger;

@RequestScoped
@Dependent
public class DeleteOutliers extends Analyzer {
private double limit;
@Inject Logger logger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import com.opencsv.CSVReader;
import com.opencsv.ICSVWriter;
import com.opencsv.exceptions.CsvValidationException;
import jakarta.enterprise.context.RequestScoped;
import jakarta.enterprise.context.Dependent;
import jakarta.inject.Inject;
import java.io.IOException;
import java.util.ArrayList;
Expand All @@ -17,7 +17,7 @@
// The goal of this analyzer is to take in any number of files, and combine them all into a single
// file based on the timestamp

@RequestScoped
@Dependent
@AnalyzerType(AnalyzerEnum.INTERPOLATER_PRO)
public class InterpolaterProAnalyzer extends Analyzer {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
import com.opencsv.CSVReader;
import com.opencsv.ICSVWriter;
import com.opencsv.exceptions.CsvException;
import jakarta.enterprise.context.RequestScoped;
import jakarta.enterprise.context.Dependent;
import jakarta.inject.Inject;
import java.io.IOException;
import org.jboss.logging.Logger;

@RequestScoped
@Dependent
@AnalyzerType(AnalyzerEnum.LINEAR_MULTIPLY)
public class LinearMultiplyAnalyzer extends Analyzer {
private double m;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
import com.opencsv.CSVReader;
import com.opencsv.ICSVWriter;
import com.opencsv.exceptions.CsvException;
import jakarta.enterprise.context.RequestScoped;
import jakarta.enterprise.context.Dependent;
import jakarta.inject.Inject;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.jboss.logging.Logger;

@RequestScoped
@Dependent
@AnalyzerType(AnalyzerEnum.RDP_COMPRESSION)
public class RDPCompressionAnalyzer extends Analyzer {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
import com.opencsv.CSVReader;
import com.opencsv.ICSVWriter;
import com.opencsv.exceptions.CsvException;
import jakarta.enterprise.context.RequestScoped;
import jakarta.enterprise.context.Dependent;
import jakarta.inject.Inject;
import java.io.IOException;
import java.util.LinkedList;
import java.util.Queue;
import org.jboss.logging.Logger;

@RequestScoped
@Dependent
@AnalyzerType(AnalyzerEnum.ROLL_AVG)
public class RollingAvgAnalyzer extends Analyzer {
private int windowSize;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import com.opencsv.CSVReader;
import com.opencsv.ICSVWriter;
import com.opencsv.exceptions.CsvException;
import jakarta.enterprise.context.RequestScoped;
import jakarta.enterprise.context.Dependent;
import jakarta.inject.Inject;
import java.io.IOException;
import java.util.ArrayDeque;
Expand All @@ -14,7 +14,7 @@
import org.apache.commons.math3.linear.RealMatrix;
import org.jboss.logging.Logger;

@RequestScoped
@Dependent
@AnalyzerType(AnalyzerEnum.SGOLAY)
public class SGolayFilter extends Analyzer {
private int windowSize;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
import com.opencsv.CSVReader;
import com.opencsv.ICSVWriter;
import com.opencsv.exceptions.CsvException;
import jakarta.enterprise.context.RequestScoped;
import jakarta.enterprise.context.Dependent;
import jakarta.inject.Inject;
import java.io.IOException;
import org.jboss.logging.Logger;

@RequestScoped
@Dependent
@AnalyzerType(AnalyzerEnum.SPLIT)
public class SplitAnalyzer extends Analyzer {
private int start;
Expand Down

0 comments on commit 9f02dca

Please sign in to comment.