Class LineServerHandler

java.lang.Object
org.palladiosimulator.solver.handler.LineServerHandler

public class LineServerHandler extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    Handler for all interactions with an instance of LINE
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clear the handler from events of previous evaluations
    void
    Closes the connection with the server
    void
    Connects to LINE server, if no instance of line server is found then a new one is launched
    boolean
    isSolved(String modelFile)
    checks if the model submitted with the specified modelFile has been solved.
    boolean
    Launches a new instance of line
    void
    solve(String modelFilePath, String REfilePath)
    solves a LQN model
    void
    Closes connections to an instance of LINE and, if the instance is local it terminates

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LineServerHandler

      public LineServerHandler(String properyFile)
      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

      public boolean isSolved(String modelFile)
      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

      public void solve(String modelFilePath, String REfilePath)
      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