Browse Source

transformations: PAND added

Former-commit-id: 623e75ce27 [formerly 19611b055d]
Former-commit-id: 50d8ede386
tempestpy_adaptions
sjunges 8 years ago
committed by Sebastian Junges
parent
commit
bed4710c7f
  1. 1341
      src/transformations/dft/DftToGspnTransformator.cpp
  2. 32
      src/transformations/dft/DftToGspnTransformator.h

1341
src/transformations/dft/DftToGspnTransformator.cpp
File diff suppressed because it is too large
View File

32
src/transformations/dft/DftToGspnTransformator.h

@ -1,8 +1,8 @@
#ifndef DFTTOGSPNTRANSFORMATOR_H
#define DFTTOGSPNTRANSFORMATOR_H
#pragma once
#include <src/storage/dft/DFT.h> #include <src/storage/dft/DFT.h>
#include "src/storage/gspn/GSPN.h" #include "src/storage/gspn/GSPN.h"
#include "src/storage/gspn/GspnBuilder.h"
namespace storm { namespace storm {
namespace transformations { namespace transformations {
@ -28,17 +28,6 @@ namespace storm {
void transform(); void transform();
private: private:
storm::storage::DFT<ValueType> const& mDft;
storm::gspn::GSPN mGspn;
static constexpr const char* STR_FAILING = "_failing"; // Name standard for transitions that point towards a place, which in turn indicates the failure of a gate.
static constexpr const char* STR_FAILED = "_failed"; // Name standard for place which indicates the failure of a gate.
static constexpr const char* STR_FAILSAVING = "_failsaving"; // Name standard for transition that point towards a place, which in turn indicates the failsave state of a gate.
static constexpr const char* STR_FAILSAVE = "_failsave"; // Name standard for place which indicates the failsave state of a gate.
static constexpr const char* STR_ACTIVATED = "_activated"; // Name standard for place which indicates the activity.
static constexpr const char* STR_ACTIVATING = "_activating"; // Name standard for transition that point towards a place, which in turn indicates its activity.
/*! /*!
* Write Gspn to file or console. * Write Gspn to file or console.
* *
@ -152,7 +141,7 @@ namespace storm {
* *
* @param dftElement The element whose priority shall be determined. * @param dftElement The element whose priority shall be determined.
*/ */
uint_fast64_t getPriority(uint_fast64_t priority, std::shared_ptr<storm::storage::DFTElement<ValueType> const> dFTElement);
uint64_t getFailPriority(std::shared_ptr<storm::storage::DFTElement<ValueType> const> dFTElement);
/* /*
* Return all ids of BEs, that are successors of the given element and that are not the spare childs of a SPARE. * Return all ids of BEs, that are successors of the given element and that are not the spare childs of a SPARE.
@ -160,9 +149,22 @@ namespace storm {
* @param dftElement The element which * @param dftElement The element which
*/ */
std::vector<int> getAllBEIDsOfElement(std::shared_ptr<storm::storage::DFTElement<ValueType> const> dftElement); std::vector<int> getAllBEIDsOfElement(std::shared_ptr<storm::storage::DFTElement<ValueType> const> dftElement);
storm::storage::DFT<ValueType> const& mDft;
storm::gspn::GspnBuilder builder;
std::vector<uint64_t> failedNodes;
static constexpr const char* STR_FAILING = "_failing"; // Name standard for transitions that point towards a place, which in turn indicates the failure of a gate.
static constexpr const char* STR_FAILED = "_failed"; // Name standard for place which indicates the failure of a gate.
static constexpr const char* STR_FAILSAVING = "_failsaving"; // Name standard for transition that point towards a place, which in turn indicates the failsave state of a gate.
static constexpr const char* STR_FAILSAVE = "_failsave"; // Name standard for place which indicates the failsave state of a gate.
static constexpr const char* STR_ACTIVATED = "_activated"; // Name standard for place which indicates the activity.
static constexpr const char* STR_ACTIVATING = "_activating"; // Name standard for transition that point towards a place, which in turn indicates its activity.
}; };
} }
} }
} }
#endif /* DFTTOGSPNTRANSFORMATOR_H*/
Loading…
Cancel
Save