Package adaptlil

Class Main

java.lang.Object
adaptlil.Main

public class Main extends Object
  • Field Details

    • adaptationLogFile

      public static SimpleLogger adaptationLogFile
    • runTimeLogfile

      public static SimpleLogger runTimeLogfile
    • hasKerasServerAckd

      public static boolean hasKerasServerAckd
    • EnvironmentConfig

      public static EnvironmentConfig EnvironmentConfig
    • mainThreadLock

      public static final ReentrantLock mainThreadLock
  • Constructor Details

    • Main

      public Main()
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      Throws:
      IOException
    • loadEnvConfig

      private static void loadEnvConfig() throws IOException
      Throws:
      IOException
    • initLoggers

      private static void initLoggers()
      Creates folder for loggers and intializes them. resulting directory /logs/System.currentTimeMillis()
    • startPythonServer

      private static void startPythonServer()
    • ackJavaServerToPythonServerAndAddShutdownHook

      private static void ackJavaServerToPythonServerAndAddShutdownHook()
    • readProcessOutput

      public static void readProcessOutput(Process p) throws IOException
      TODO This method and the next are confusing in terms of launch script. Needs to be cleaned up and tested. I believe this is used to output batch script strings Which if that is the case, we can still use it.
      Parameters:
      p -
      Throws:
      IOException
    • initHttpServerAndWebSocketPort

      public static void initHttpServerAndWebSocketPort()
      https://javaee.github.io/grizzly/websockets.html
    • initVisualizationWebsocket

      public static VisualizationWebsocket initVisualizationWebsocket()
    • initGazepointSocket

      public static GazepointSocket initGazepointSocket(boolean simulateGazepointServer) throws IOException, com.opencsv.exceptions.CsvValidationException
      Throws:
      IOException
      com.opencsv.exceptions.CsvValidationException
    • initGazeWindow

      public static GazeWindow initGazeWindow(float windowSizeInMilliseconds)
    • initAdaptationMediator

      public static AdaptationMediator initAdaptationMediator(VisualizationWebsocket websocket, GazepointSocket gazepointSocket, PythonServerCore pythonServerCore, GazeWindow window)
    • preloadND4J

      public static void preloadND4J()
      Makes a simple call to create a 1,1 nd4j array to preload libs.
    • ShutDownFunction

      public static void ShutDownFunction()