Skip to content

Commit

Permalink
Unified infinity format with the GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
tand00 committed Sep 23, 2024
1 parent 4331b6d commit bc24e33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Core/TAPN/TimedArcPetriNet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,10 @@ namespace TAPN {
out << "<transition player=\"" << (transition->isControllable() ? 0 : 1)
<< "\" id=\"" << transition->getName() << "\" name=\"" << transition->getName()
<< "\" urgent=\"" << std::boolalpha << transition->isUrgent()
<< "\" weight=\"" << transition->getWeight()
<< "\" weight=\"" << (
transition->getWeight() == std::numeric_limits<double>::infinity() ?
"Infinity" : std::to_string(transition->getWeight())
)
<< "\" firingMode=\"" << SMC::firingModeName(transition->getFiringMode())
<< "\" " << transition->getDistribution().toXML()
<< ">\n";
Expand Down

0 comments on commit bc24e33

Please sign in to comment.