Browse Source

First changes for SEQ

Former-commit-id: a9fa9b0818
tempestpy_adaptions
mdeutschen 8 years ago
committed by Sebastian Junges
parent
commit
25195abcc4
  1. 10
      src/transformations/dft/DftToGspnTransformator.cpp

10
src/transformations/dft/DftToGspnTransformator.cpp

@ -21,6 +21,9 @@ namespace storm {
// When all DFT elements are drawn, draw the connections between them. // When all DFT elements are drawn, draw the connections between them.
drawGSPNConnections(); drawGSPNConnections();
// TODO: For sequences:
// drawGSPNRestrictions(); ?
// Write GSPN to file. // Write GSPN to file.
writeGspn(true); writeGspn(true);
@ -53,7 +56,7 @@ namespace storm {
drawPOR(std::static_pointer_cast<storm::storage::DFTPor<ValueType> const>(dftElement)); drawPOR(std::static_pointer_cast<storm::storage::DFTPor<ValueType> const>(dftElement));
break; break;
case storm::storage::DFTElementType::SEQ: case storm::storage::DFTElementType::SEQ:
STORM_LOG_THROW(false, storm::exceptions::NotImplementedException, "The transformation of a SEQ is not yet implemented.");
// No method call needed here. SEQ only consists of restrictions, which are handled later.
break; break;
case storm::storage::DFTElementType::MUTEX: case storm::storage::DFTElementType::MUTEX:
STORM_LOG_THROW(false, storm::exceptions::NotImplementedException, "The transformation of a MUTEX is not yet implemented."); STORM_LOG_THROW(false, storm::exceptions::NotImplementedException, "The transformation of a MUTEX is not yet implemented.");
@ -261,7 +264,7 @@ namespace storm {
auto parents = child->parentIds(); auto parents = child->parentIds();
// Draw a connection to every parent. // Draw a connection to every parent.
for (std::size_t j = 0; j < parents.size(); j++) {
for (std::size_t j = 0; j < parents.size(); j++) {
// Check the type of the parent and act accordingly (every parent gate has different entry points...). // Check the type of the parent and act accordingly (every parent gate has different entry points...).
switch (mDft.getElement(parents[j])->type()) { switch (mDft.getElement(parents[j])->type()) {
case storm::storage::DFTElementType::AND: case storm::storage::DFTElementType::AND:
@ -353,7 +356,10 @@ namespace storm {
break; break;
} }
case storm::storage::DFTElementType::SEQ: case storm::storage::DFTElementType::SEQ:
{
// Sequences are realized with restrictions. Nothing to do here.
break; break;
}
case storm::storage::DFTElementType::MUTEX: case storm::storage::DFTElementType::MUTEX:
break; break;
case storm::storage::DFTElementType::BE: case storm::storage::DFTElementType::BE:

Loading…
Cancel
Save