Class CommandLineSolver
java.lang.Object
analytical.CommandLineSolver
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.
The model is validated and solved.
- Version:
- 16-lug-2004
- Author:
- Stefano Omini
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringthe extension of files which contain the models -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanSolves the model contained in the file.booleanSolves the model contained in the file specified using its path.
-
Field Details
-
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
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
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
-