diff --git a/src/storm-dft/transformations/DftTransformator.cpp b/src/storm-dft/transformations/DftTransformator.cpp new file mode 100644 index 000000000..cb89c336a --- /dev/null +++ b/src/storm-dft/transformations/DftTransformator.cpp @@ -0,0 +1,34 @@ +#include "DftTransformator.h" + +namespace storm { + namespace transformations { + namespace dft { + template + DftTransformator::DftTransformator(storm::storage::DFT const &dft) : mDft(dft) {} + + template + storm::storage::DFT DftTransformator::transformUniqueFailedBe() { + // For now, this only creates an empty DFT + storm::builder::DFTBuilder builder; + + for (size_t i = 0; i < mDft.nrElements(); ++i) { + std::shared_ptr const> element = mDft.getElement(i); + //TODO SWITCH OVER ELEMENTS + } + //builder.setTopLevel(mDft.getTopLevelGate()->name()); + return builder.build(); + } + + // Explicitly instantiate the class. + template + class DftTransformator; + +#ifdef STORM_HAVE_CARL + + template + class DftTransformator; + +#endif + } + } +} diff --git a/src/storm-dft/transformations/DftTransformator.h b/src/storm-dft/transformations/DftTransformator.h new file mode 100644 index 000000000..59872ec51 --- /dev/null +++ b/src/storm-dft/transformations/DftTransformator.h @@ -0,0 +1,30 @@ +#include "storm-dft/storage/dft/DFT.h" +#include "storm-dft/builder/DFTBuilder.h" +#include "storm/utility/macros.h" + +namespace storm { + namespace transformations { + namespace dft { + + /*! + * Transformator for DFT -> DFT. + */ + template + class DftTransformator { + + public: + /*! + * Constructor. + * + * @param dft DFT + */ + DftTransformator(storm::storage::DFT const &dft); + + storm::storage::DFT transformUniqueFailedBe(); + + private: + storm::storage::DFT const &mDft; + }; + } + } +}