1#ifndef STORM_STORAGE_GSPN_PLACE_H_
2#define STORM_STORAGE_GSPN_PLACE_H_
5#include "boost/optional.hpp"
23 void setName(std::string
const& name);
37 uint64_t
getID()
const;
59 void setCapacity(boost::optional<uint64_t>
const& capacity);
75 uint64_t numberOfInitialTokens = 0;
86 boost::optional<uint64_t> capacity = boost::none;
This class provides methods to store and retrieve data for a place in a gspn.
uint64_t getCapacity() const
Returns the capacity of tokens of this place.
void setName(std::string const &name)
Sets the name of this place.
void setCapacity(boost::optional< uint64_t > const &capacity)
Sets the capacity of tokens of this place.
bool hasRestrictedCapacity() const
uint64_t getID() const
Returns the id of this place.
std::string getName() const
Returns the name of this place.
uint64_t getNumberOfInitialTokens() const
Returns the number of initial tokens of this place.
void setNumberOfInitialTokens(uint64_t tokens)
Sets the number of initial tokens of this place.