Package entity

Class Config

java.lang.Object
entity.Config
All Implemented Interfaces:
Serializable

public class Config extends Object implements Serializable
This class is used to store the configuration of the application.
See Also:
  • Field Details

    • checkBoxes

      private List<Boolean> checkBoxes
    • labels

      private List<String> labels
    • sampleFreq

      private Double sampleFreq
    • pythonInterpreter

      private String pythonInterpreter
    • dataOutputPath

      private String dataOutputPath
    • eyeTrackerDevice

      private Integer eyeTrackerDevice
  • Constructor Details

    • Config

      public Config(List<Boolean> checkBoxes, List<String> labels, Double sampleFreq, String pythonInterpreter, String dataOutputPath, Integer eyeTrackerDevice)
      The constructor of the Config class.
      Parameters:
      checkBoxes - The list of the checkboxes.
      labels - The list of the labels.
      sampleFreq - The sample frequency.
      pythonInterpreter - The path of the python interpreter.
      dataOutputPath - The path of the data output folder.
      eyeTrackerDevice - The index of the eye tracker device.
    • Config

      public Config()
      The constructor of the Config class.
  • Method Details

    • configExists

      public boolean configExists()
    • saveAsJson

      public void saveAsJson()
      Save the configuration as a JSON file.
    • loadFromJson

      public void loadFromJson()
      Load the configuration from the JSON file.
    • getPythonInterpreter

      public String getPythonInterpreter()
    • getSampleFreq

      public Double getSampleFreq()
    • getCheckBoxes

      public List<Boolean> getCheckBoxes()
    • getLabels

      public List<String> getLabels()
    • getDataOutputPath

      public String getDataOutputPath()
    • getEyeTrackerDevice

      public Integer getEyeTrackerDevice()
    • toString

      public String toString()
      Overrides:
      toString in class Object