Class OptPropertiesParser
- java.lang.Object
-
- repast.simphony.parameter.optimizer.OptPropertiesParser
-
public class OptPropertiesParser extends Object
Parses the properties from an optimizing properties file.- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description OptPropertiesParser(File file)
Creates a properites parser to parse the specified file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdvancementChooser
getAdvancementChooser()
Gets the AdvancementChooser (if any) from the class name in the properties file.String
getBSFScript()
Gets the name of the BSF script file to use for this optimized sweep.String
getParametersFile()
Gets the name of the parameters file to use for this optimized sweep.RunResultProducer
getRunResultProducer()
Gets the RunResultProducer from the class name in the properties file.
-
-
-
Constructor Detail
-
OptPropertiesParser
public OptPropertiesParser(File file) throws IOException
Creates a properites parser to parse the specified file.- Parameters:
file
-- Throws:
IOException
-
-
Method Detail
-
getRunResultProducer
public RunResultProducer getRunResultProducer() throws ClassNotFoundException, IllegalAccessException, InstantiationException
Gets the RunResultProducer from the class name in the properties file.- Returns:
- the RunResultProducer from the class name in the properties file.
- Throws:
ClassNotFoundException
IllegalAccessException
InstantiationException
-
getAdvancementChooser
public AdvancementChooser getAdvancementChooser() throws ClassNotFoundException, IllegalAccessException, InstantiationException
Gets the AdvancementChooser (if any) from the class name in the properties file.- Returns:
- the AdvancementChooser (if any) from the class name in the properties file.
- Throws:
ClassNotFoundException
IllegalAccessException
InstantiationException
-
getParametersFile
public String getParametersFile()
Gets the name of the parameters file to use for this optimized sweep.- Returns:
- the name of the parameters file to use for this optimized sweep.
-
getBSFScript
public String getBSFScript()
Gets the name of the BSF script file to use for this optimized sweep.- Returns:
- the name of the BSF script file to use for this optimized sweep.
-
-