|
@ -149,7 +149,8 @@ int main(int argc, char* argv[]) { |
|
|
cells backgroundCells; |
|
|
cells backgroundCells; |
|
|
std::vector<Configuration> configurations; |
|
|
std::vector<Configuration> configurations; |
|
|
std::map<coordinates, float> stateRewards; |
|
|
std::map<coordinates, float> stateRewards; |
|
|
double faultyProbability; |
|
|
|
|
|
|
|
|
float faultyProbability = 0.0; |
|
|
|
|
|
float probIntended = 0.9; |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
bool ok = phrase_parse(contentIter, contentLast, contentParser, qi::space, contentCells); |
|
|
bool ok = phrase_parse(contentIter, contentLast, contentParser, qi::space, contentCells); |
|
@ -181,8 +182,9 @@ int main(int argc, char* argv[]) { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if(ok) { |
|
|
if(ok) { |
|
|
Grid grid(contentCells, backgroundCells, gridOptions, stateRewards, faultyProbability); |
|
|
|
|
|
//grid.printToPrism(std::cout, prism::ModelType::MDP);
|
|
|
|
|
|
|
|
|
Grid grid(contentCells, backgroundCells, gridOptions, stateRewards, probIntended, faultyProbability); |
|
|
|
|
|
|
|
|
|
|
|
grid.printToPrism(std::cout, configurations , gridOptions.getModelType()); |
|
|
std::stringstream ss; |
|
|
std::stringstream ss; |
|
|
// grid.printToPrism(file, configurations ,prism::ModelType::MDP);
|
|
|
// grid.printToPrism(file, configurations ,prism::ModelType::MDP);
|
|
|
grid.printToPrism(ss, configurations , gridOptions.getModelType()); |
|
|
grid.printToPrism(ss, configurations , gridOptions.getModelType()); |
|
|