Package adaptlil
Class Main
java.lang.Object
adaptlil.Main
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic SimpleLoggerstatic EnvironmentConfigstatic booleanstatic final ReentrantLockstatic SimpleLogger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidstatic AdaptationMediatorinitAdaptationMediator(VisualizationWebsocket websocket, GazepointSocket gazepointSocket, PythonServerCore pythonServerCore, GazeWindow window) static GazepointSocketinitGazepointSocket(boolean simulateGazepointServer) static GazeWindowinitGazeWindow(float windowSizeInMilliseconds) static voidhttps://javaee.github.io/grizzly/websockets.htmlprivate static voidCreates folder for loggers and intializes them.static VisualizationWebsocketprivate static voidstatic voidstatic voidMakes a simple call to create a 1,1 nd4j array to preload libs.static voidTODO This method and the next are confusing in terms of launch script.static voidprivate 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:
IOExceptioncom.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()
-