Browse Source

Add @Deprecated annotations for methods where deprecation is marked in JavaDoc

Silences compile warnings (JDKs >=9).
accumulation-v4.7
Joachim Klein 7 years ago
parent
commit
6f325e96bb
  1. 20
      prism/src/prism/Prism.java
  2. 3
      prism/src/userinterface/GUIPlugin.java

20
prism/src/prism/Prism.java

@ -304,6 +304,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
* Construct a new Prism object. * Construct a new Prism object.
* @deprecated ({@code techLog} is no longer used, use the {@link #prism.Prism(PrismLog)} constructor instead). * @deprecated ({@code techLog} is no longer used, use the {@link #prism.Prism(PrismLog)} constructor instead).
*/ */
@Deprecated
public Prism(PrismLog mainLog, PrismLog techLog) public Prism(PrismLog mainLog, PrismLog techLog)
{ {
this(mainLog); this(mainLog);
@ -3887,6 +3888,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
* It is assumed that all constants in the PRISM model file have been defined by now. * It is assumed that all constants in the PRISM model file have been defined by now.
* @param modulesFile Model to build * @param modulesFile Model to build
*/ */
@Deprecated
public Model buildModel(ModulesFile modulesFile) throws PrismException public Model buildModel(ModulesFile modulesFile) throws PrismException
{ {
loadPRISMModel(modulesFile); loadPRISMModel(modulesFile);
@ -3900,6 +3902,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
* @param model The model * @param model The model
* @param file File to export to * @param file File to export to
*/ */
@Deprecated
public void exportToSpyFile(Model model, File file) throws FileNotFoundException, PrismException public void exportToSpyFile(Model model, File file) throws FileNotFoundException, PrismException
{ {
loadBuiltModel(model); loadBuiltModel(model);
@ -3912,6 +3915,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
* @param model The model * @param model The model
* @param file File to export to * @param file File to export to
*/ */
@Deprecated
public void exportToDotFile(Model model, File file) throws FileNotFoundException, PrismException public void exportToDotFile(Model model, File file) throws FileNotFoundException, PrismException
{ {
loadBuiltModel(model); loadBuiltModel(model);
@ -3933,6 +3937,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
* </ul> * </ul>
* @param file File to export to (if null, print to the log instead) * @param file File to export to (if null, print to the log instead)
*/ */
@Deprecated
public void exportToFile(Model model, boolean ordered, int exportType, File file) throws FileNotFoundException, PrismException public void exportToFile(Model model, boolean ordered, int exportType, File file) throws FileNotFoundException, PrismException
{ {
exportTransToFile(model, ordered, exportType, file); exportTransToFile(model, ordered, exportType, file);
@ -3953,6 +3958,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
* </ul> * </ul>
* @param file File to export to (if null, print to the log instead) * @param file File to export to (if null, print to the log instead)
*/ */
@Deprecated
public void exportTransToFile(Model model, boolean ordered, int exportType, File file) throws FileNotFoundException, PrismException public void exportTransToFile(Model model, boolean ordered, int exportType, File file) throws FileNotFoundException, PrismException
{ {
loadBuiltModel(model); loadBuiltModel(model);
@ -3970,6 +3976,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
* </ul> * </ul>
* @param file File to export to (if null, print to the log instead) * @param file File to export to (if null, print to the log instead)
*/ */
@Deprecated
public void exportStateRewardsToFile(Model model, int exportType, File file) throws FileNotFoundException, PrismException public void exportStateRewardsToFile(Model model, int exportType, File file) throws FileNotFoundException, PrismException
{ {
loadBuiltModel(model); loadBuiltModel(model);
@ -3989,6 +3996,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
* </ul> * </ul>
* @param file File to export to (if null, print to the log instead) * @param file File to export to (if null, print to the log instead)
*/ */
@Deprecated
public void exportTransRewardsToFile(Model model, boolean ordered, int exportType, File file) throws FileNotFoundException, PrismException public void exportTransRewardsToFile(Model model, boolean ordered, int exportType, File file) throws FileNotFoundException, PrismException
{ {
loadBuiltModel(model); loadBuiltModel(model);
@ -4005,6 +4013,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
* </ul> * </ul>
* @param file File to export to (if null, print to the log instead) * @param file File to export to (if null, print to the log instead)
*/ */
@Deprecated
public void exportBSCCsToFile(Model model, int exportType, File file) throws FileNotFoundException, PrismException public void exportBSCCsToFile(Model model, int exportType, File file) throws FileNotFoundException, PrismException
{ {
loadBuiltModel(model); loadBuiltModel(model);
@ -4024,6 +4033,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
* </ul> * </ul>
* @param file File to export to (if null, print to the log instead) * @param file File to export to (if null, print to the log instead)
*/ */
@Deprecated
public void exportLabelsToFile(Model model, ModulesFile modulesFile, PropertiesFile propertiesFile, int exportType, File file) public void exportLabelsToFile(Model model, ModulesFile modulesFile, PropertiesFile propertiesFile, int exportType, File file)
throws FileNotFoundException, PrismException throws FileNotFoundException, PrismException
{ {
@ -4041,6 +4051,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
* </ul> * </ul>
* @param file File to export to (if null, print to the log instead) * @param file File to export to (if null, print to the log instead)
*/ */
@Deprecated
public void exportStatesToFile(Model model, int exportType, File file) throws FileNotFoundException, PrismException public void exportStatesToFile(Model model, int exportType, File file) throws FileNotFoundException, PrismException
{ {
loadBuiltModel(model); loadBuiltModel(model);
@ -4054,6 +4065,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
* @param propertiesFile Parent property file of property (for labels/constants/...) * @param propertiesFile Parent property file of property (for labels/constants/...)
* @param expr The property to check * @param expr The property to check
*/ */
@Deprecated
public Result modelCheck(Model model, PropertiesFile propertiesFile, Expression expr) throws PrismException, PrismLangException public Result modelCheck(Model model, PropertiesFile propertiesFile, Expression expr) throws PrismException, PrismLangException
{ {
loadBuiltModel(model); loadBuiltModel(model);
@ -4067,6 +4079,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
* @param propertiesFile Parent property file of property (for labels/constants/...) * @param propertiesFile Parent property file of property (for labels/constants/...)
* @param expr The property to check * @param expr The property to check
*/ */
@Deprecated
public Result modelCheckPTA(ModulesFile modulesFile, PropertiesFile propertiesFile, Expression expr) throws PrismException, PrismLangException public Result modelCheckPTA(ModulesFile modulesFile, PropertiesFile propertiesFile, Expression expr) throws PrismException, PrismLangException
{ {
loadPRISMModel(modulesFile); loadPRISMModel(modulesFile);
@ -4076,6 +4089,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
/** /**
* @deprecated * @deprecated
*/ */
@Deprecated
public Result modelCheckSimulator(ModulesFile modulesFile, PropertiesFile propertiesFile, Expression expr, State initialState, long maxPathLength, public Result modelCheckSimulator(ModulesFile modulesFile, PropertiesFile propertiesFile, Expression expr, State initialState, long maxPathLength,
SimulationMethod simMethod) throws PrismException SimulationMethod simMethod) throws PrismException
{ {
@ -4086,6 +4100,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
/** /**
* @deprecated * @deprecated
*/ */
@Deprecated
public Result[] modelCheckSimulatorSimultaneously(ModulesFile modulesFile, PropertiesFile propertiesFile, List<Expression> exprs, State initialState, public Result[] modelCheckSimulatorSimultaneously(ModulesFile modulesFile, PropertiesFile propertiesFile, List<Expression> exprs, State initialState,
long maxPathLength, SimulationMethod simMethod) throws PrismException long maxPathLength, SimulationMethod simMethod) throws PrismException
{ {
@ -4096,6 +4111,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
/** /**
* @deprecated * @deprecated
*/ */
@Deprecated
public void modelCheckSimulatorExperiment(ModulesFile modulesFile, PropertiesFile propertiesFile, UndefinedConstants undefinedConstants, public void modelCheckSimulatorExperiment(ModulesFile modulesFile, PropertiesFile propertiesFile, UndefinedConstants undefinedConstants,
ResultsCollection results, Expression propertyToCheck, State initialState, long maxPathLength, SimulationMethod simMethod) throws PrismException, ResultsCollection results, Expression propertyToCheck, State initialState, long maxPathLength, SimulationMethod simMethod) throws PrismException,
InterruptedException InterruptedException
@ -4109,6 +4125,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
* Load (built) model and compute steady-state probabilities (DTMCs/CTMCs only). * Load (built) model and compute steady-state probabilities (DTMCs/CTMCs only).
* Output probability distribution to log. * Output probability distribution to log.
*/ */
@Deprecated
public void doSteadyState(Model model) throws PrismException public void doSteadyState(Model model) throws PrismException
{ {
doSteadyState(model, EXPORT_PLAIN, null); doSteadyState(model, EXPORT_PLAIN, null);
@ -4120,6 +4137,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
* Output probability distribution to a file (or, if file is null, to log). * Output probability distribution to a file (or, if file is null, to log).
* The exportType should be EXPORT_PLAIN or EXPORT_MATLAB. * The exportType should be EXPORT_PLAIN or EXPORT_MATLAB.
*/ */
@Deprecated
public void doSteadyState(Model model, int exportType, File file) throws PrismException public void doSteadyState(Model model, int exportType, File file) throws PrismException
{ {
loadBuiltModel(model); loadBuiltModel(model);
@ -4131,6 +4149,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
* Load (built) model and compute transient probabilities (DTMCs/CTMCs only). * Load (built) model and compute transient probabilities (DTMCs/CTMCs only).
* Output probability distribution to log. * Output probability distribution to log.
*/ */
@Deprecated
public void doTransient(Model model, double time) throws PrismException public void doTransient(Model model, double time) throws PrismException
{ {
doTransient(model, time, EXPORT_PLAIN, null, null); doTransient(model, time, EXPORT_PLAIN, null, null);
@ -4143,6 +4162,7 @@ public class Prism extends PrismComponent implements PrismSettingsListener
* The exportType should be EXPORT_PLAIN or EXPORT_MATLAB. * The exportType should be EXPORT_PLAIN or EXPORT_MATLAB.
* Optionally (if non-null), read in the initial probability distribution from a file. * Optionally (if non-null), read in the initial probability distribution from a file.
*/ */
@Deprecated
public void doTransient(Model model, double time, int exportType, File file, File fileIn) throws PrismException public void doTransient(Model model, double time, int exportType, File file, File fileIn) throws PrismException
{ {
loadBuiltModel(model); loadBuiltModel(model);

3
prism/src/userinterface/GUIPlugin.java

@ -162,6 +162,7 @@ public abstract class GUIPlugin extends JPanel implements GUIEventListener, Pris
* @deprecated This method was intended for use in projects. Projects are no longer going to * @deprecated This method was intended for use in projects. Projects are no longer going to
* be included in the project. * be included in the project.
*/ */
@Deprecated
public abstract Object getXMLSaveTree(); public abstract Object getXMLSaveTree();
/** Returns an XML tag for this plugin /** Returns an XML tag for this plugin
@ -169,6 +170,7 @@ public abstract class GUIPlugin extends JPanel implements GUIEventListener, Pris
* @deprecated This method was intended for use in projects. Projects are no longer going to * @deprecated This method was intended for use in projects. Projects are no longer going to
* be included in the project. * be included in the project.
*/ */
@Deprecated
public abstract String getXMLIDTag(); public abstract String getXMLIDTag();
/** Returns a boolean stating whether this plugin should be displayed as a tab /** Returns a boolean stating whether this plugin should be displayed as a tab
@ -250,6 +252,7 @@ public abstract class GUIPlugin extends JPanel implements GUIEventListener, Pris
* @deprecated This method was intended for use in projects. Projects are no longer going to * @deprecated This method was intended for use in projects. Projects are no longer going to
* be included in the project. * be included in the project.
*/ */
@Deprecated
public abstract void loadXML(Object c); //the object will be an xml parse tree public abstract void loadXML(Object c); //the object will be an xml parse tree
/** A utility method which is simply a wrapper of the corresponding method in the /** A utility method which is simply a wrapper of the corresponding method in the

Loading…
Cancel
Save