You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
841 B
33 lines
841 B
#pragma once
|
|
|
|
#include "storm-gspn/storage/gspn/Transition.h"
|
|
|
|
namespace storm {
|
|
namespace gspn {
|
|
template <typename RateType>
|
|
class TimedTransition : public storm::gspn::Transition {
|
|
public:
|
|
/*!
|
|
* Sets the rate of this transition to the given value.
|
|
*
|
|
* @param rate The new rate for this transition.
|
|
*/
|
|
void setRate(RateType const& rate) {
|
|
this->rate = rate;
|
|
}
|
|
|
|
/*!
|
|
* Retrieves the rate of this transition.
|
|
*
|
|
* @return The rate of this transition.
|
|
*/
|
|
RateType getRate() const {
|
|
return this->rate;
|
|
}
|
|
|
|
private:
|
|
// the rate of the transition
|
|
RateType rate;
|
|
};
|
|
}
|
|
}
|