|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPIANOS.io.ComputationalModelParser
public class ComputationalModelParser
The PIANOS parser Reads input files with readModel and returns the corresponding model.
Field Summary | |
---|---|
static java.util.HashMap<Variable,java.lang.String> |
spatAffectedMap
Public for testing purposes, do not modify. |
static java.util.ArrayList<Variable> |
toBeChecked
Public for testing purposes, do not modify. |
Method Summary | |
---|---|
static ComputationalModel |
modelTestOnly(java.lang.String modelFileName,
java.lang.String proposalFileName,
DistributionFactory factory)
|
static Variable |
parseVariable(java.io.File file,
boolean isInteger,
java.lang.String toParse,
java.util.HashMap<java.lang.String,Variable> variableMapper,
DistributionFactory fact)
Reads a variable definition line and returns a representation of the variable, public for testing purposes. |
static ComputationalModel |
readModel(java.lang.String modelFileName,
java.lang.String initialValueFileName,
java.lang.String simulationFileName,
java.lang.String proposalFileName,
java.lang.String updateFileName,
java.lang.String toOutputFileName,
DistributionFactory factory)
The main interface for the Parser. |
static ComputationalModel |
testNoInitialValues(java.lang.String modelFileName,
java.lang.String simulationFileName,
java.lang.String proposalFileName,
java.lang.String updateFileName,
java.lang.String toOutputFileName,
DistributionFactory factory)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.util.ArrayList<Variable> toBeChecked
public static java.util.HashMap<Variable,java.lang.String> spatAffectedMap
Method Detail |
---|
public static ComputationalModel modelTestOnly(java.lang.String modelFileName, java.lang.String proposalFileName, DistributionFactory factory) throws java.io.IOException, SyntaxException, MissingDistributionException
java.io.IOException
SyntaxException
MissingDistributionException
public static ComputationalModel testNoInitialValues(java.lang.String modelFileName, java.lang.String simulationFileName, java.lang.String proposalFileName, java.lang.String updateFileName, java.lang.String toOutputFileName, DistributionFactory factory) throws java.io.IOException, SyntaxException, MissingDistributionException
java.io.IOException
SyntaxException
MissingDistributionException
public static ComputationalModel readModel(java.lang.String modelFileName, java.lang.String initialValueFileName, java.lang.String simulationFileName, java.lang.String proposalFileName, java.lang.String updateFileName, java.lang.String toOutputFileName, DistributionFactory factory) throws java.io.IOException, SyntaxException, MissingDistributionException
modelFileName
- the name of the model fileinitialValueFileName
- the name of the initial
values filesimulationFileName
- the name of the model fileproposalFileName
- the name of the proposal distributions
fileupdateFileName
- the name of the variables update strategy
filetoOutputFileName
- the name of the to_output filefactory
- the DistributionFactory with the user distributions used
java.io.IOException
SyntaxException
MissingDistributionException
public static Variable parseVariable(java.io.File file, boolean isInteger, java.lang.String toParse, java.util.HashMap<java.lang.String,Variable> variableMapper, DistributionFactory fact) throws SyntaxException, MissingDistributionException
SyntaxException
MissingDistributionException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |