Class CommandLineSolver

java.lang.Object
analytical.CommandLineSolver

public class CommandLineSolver extends Object
This class allows to solve a model contained in a ".xml" File from command line, without using the graphic user interface of Java Modelling Tools.
The model is validated and solved.
Version:
16-lug-2004
Author:
Stefano Omini
  • Field Details

    • MODEL_EXTENSION

      public static final String MODEL_EXTENSION
      the extension of files which contain the models
      See Also:
  • Constructor Details

    • CommandLineSolver

      public CommandLineSolver()
      Initializes the command line solver.
  • Method Details

    • solve

      public boolean solve(File file)
      Solves the model contained in the file. The results are saved into the file itself.
      Parameters:
      file - the XML file containing the model
      Returns:
      true if the model has been correctly solved
    • solve

      public boolean solve(String path)
      Solves the model contained in the file specified using its path. The results are saved into the file itself.
      Parameters:
      path - the path of the XML file containing the model
      Returns:
      true if the operation is successful, false otherwise
    • getSolverDispatcher

      public SolverDispatcher getSolverDispatcher()