Class LineServerHandler
java.lang.Object
org.palladiosimulator.solver.handler.LineServerHandler
-
Constructor Summary
ConstructorsConstructorDescriptionLineServerHandler(String properyFile) Handler for all interactions with an instance of LINE -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the handler from events of previous evaluationsvoidCloses the connection with the servervoidConnects to LINE server, if no instance of line server is found then a new one is launchedbooleanchecks if the model submitted with the specified modelFile has been solved.booleanLaunches a new instance of linevoidsolves a LQN modelvoidCloses connections to an instance of LINE and, if the instance is local it terminates
-
Constructor Details
-
LineServerHandler
Handler for all interactions with an instance of LINE- Parameters:
properyFile-
-
-
Method Details
-
closeConnections
public void closeConnections()Closes the connection with the server -
connectToLINEServer
public void connectToLINEServer()Connects to LINE server, if no instance of line server is found then a new one is launched -
isSolved
checks if the model submitted with the specified modelFile has been solved.- Parameters:
modelFile-- Returns:
-
launchLine
public boolean launchLine()Launches a new instance of line- Returns:
-
solve
solves a LQN model- Parameters:
modelFilePath-REfilePath- - path to a random environment to apply to the model
-
terminateLine
public void terminateLine()Closes connections to an instance of LINE and, if the instance is local it terminates -
clear
public void clear()Clear the handler from events of previous evaluations
-