STORM_LOG_THROW(edgeEntry.count("assignments")==1,storm::exceptions::InvalidJaniException,"Multiple edge assignments in edge from '"+sourceLoc+"' in automaton '"+name+"'.");
STORM_LOG_THROW(assignmentEntry.count("ref")==1,storm::exceptions::InvalidJaniException,"Assignment in edge from '"<<sourceLoc<<"' in automaton '"<<name<<"' must have one ref field");
storm::jani::LValuelValue=parseLValue(assignmentEntry.at("ref"),scope.refine("Assignment variable in edge from '"+sourceLoc+"' in automaton '"+name+"'"));
// value
STORM_LOG_THROW(assignmentEntry.count("value")==1,storm::exceptions::InvalidJaniException,"Assignment in edge from '"<<sourceLoc<<"' in automaton '"<<name<<"' must have one value field");
storm::expressions::ExpressionassignmentExpr=parseExpression(assignmentEntry.at("value"),scope.refine("assignment in edge from '"+sourceLoc+"' in automaton '"+name+"'"));
// TODO check types
// index
int64_tassignmentIndex=0;// default.
if(assignmentEntry.count("index")>0){
assignmentIndex=getSignedInt(assignmentEntry.at("index"),"assignment index in edge from '"+sourceLoc+"' in automaton '"+name+"'");
STORM_LOG_THROW(edgeEntry.count("destinations")==1,storm::exceptions::InvalidJaniException,"A single list of destinations must be given in edge from '"<<sourceLoc<<"' in automaton '"<<name<<"'");
STORM_LOG_THROW(edgeEntry.count("destinations")==1,storm::exceptions::InvalidJaniException,"A single list of destinations must be given in edge from '"<<sourceLoc<<"' in automaton '"<<name<<"'");