Package adaptlil
Class Main
java.lang.Object
adaptlil.Main
-
Field Summary
Modifier and TypeFieldDescriptionstatic SimpleLogger
static EnvironmentConfig
static boolean
static final ReentrantLock
static SimpleLogger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
static AdaptationMediator
initAdaptationMediator
(VisualizationWebsocket websocket, GazepointSocket gazepointSocket, PythonServerCore pythonServerCore, GazeWindow window) static GazepointSocket
initGazepointSocket
(boolean simulateGazepointServer) static GazeWindow
initGazeWindow
(float windowSizeInMilliseconds) static void
https://javaee.github.io/grizzly/websockets.htmlprivate static void
Creates folder for loggers and intializes them.static VisualizationWebsocket
private static void
static void
static void
Makes a simple call to create a 1,1 nd4j array to preload libs.static void
TODO This method and the next are confusing in terms of launch script.static void
private static void
-
Field Details
-
adaptationLogFile
-
runTimeLogfile
-
hasKerasServerAckd
public static boolean hasKerasServerAckd -
EnvironmentConfig
-
mainThreadLock
-
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
- Throws:
IOException
-
loadEnvConfig
- 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
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
-
initGazepointSocket
public static GazepointSocket initGazepointSocket(boolean simulateGazepointServer) throws IOException, com.opencsv.exceptions.CsvValidationException - Throws:
IOException
com.opencsv.exceptions.CsvValidationException
-
initGazeWindow
-
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()
-