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.
41 lines
1.1 KiB
41 lines
1.1 KiB
#include "Place.h"
|
|
|
|
#include "src/exceptions/IllegalArgumentValueException.h"
|
|
#include "src/utility/macros.h"
|
|
|
|
namespace storm {
|
|
namespace gspn {
|
|
void Place::setName(std::string const& name) {
|
|
this->name = name;
|
|
}
|
|
|
|
std::string Place::getName() const {
|
|
return this->name;
|
|
}
|
|
|
|
void Place::setID(uint_fast64_t const& id) {
|
|
this->id = id;
|
|
}
|
|
|
|
uint_fast64_t Place::getID() const {
|
|
return this->id;
|
|
}
|
|
|
|
void Place::setNumberOfInitialTokens(uint_fast64_t const& tokens) {
|
|
this->numberOfInitialTokens = tokens;
|
|
}
|
|
|
|
uint_fast64_t Place::getNumberOfInitialTokens() const {
|
|
return this->numberOfInitialTokens;
|
|
}
|
|
|
|
void Place::setCapacity(int_fast64_t const& capacity) {
|
|
STORM_LOG_THROW(capacity <= -1, storm::exceptions::IllegalArgumentValueException, "The capacity cannot be less than -1.");
|
|
this->capacity = capacity;
|
|
}
|
|
|
|
int_fast64_t Place::getCapacity() const {
|
|
return this->capacity;
|
|
}
|
|
}
|
|
}
|