Class LineServerHandler
java.lang.Object
org.palladiosimulator.solver.handler.LineServerHandler
-
Constructor Summary
ConstructorDescriptionLineServerHandler
(String properyFile) Handler for all interactions with an instance of LINE -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear the handler from events of previous evaluationsvoid
Closes the connection with the servervoid
Connects to LINE server, if no instance of line server is found then a new one is launchedboolean
checks if the model submitted with the specified modelFile has been solved.boolean
Launches a new instance of linevoid
solves a LQN modelvoid
Closes 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
-