#include <Zsl.hh>
Definition at line 137 of file Zsl.hh.
◆ ZslFactory()
Diades::Petri::ZslFactory::ZslFactory |
( |
const Net & |
net | ) |
|
|
inline |
◆ ~ZslFactory()
virtual Diades::Petri::ZslFactory::~ZslFactory |
( |
| ) |
|
|
virtual |
◆ addZsl()
const Zsl* Diades::Petri::ZslFactory::addZsl |
( |
const Zsl * |
zsl, |
|
|
Place |
p, |
|
|
int |
value |
|
) |
| |
- Parameters
-
zsl | a Zsl |
p | a Place |
value | a value |
- Returns
- a Zsl that results from the appending of a cell (p,value) to the Zsl zsl
- Postcondition
- the appending is smart, so does not appendi if value is 0
- See also
- the function ADD of molinaro.pdf
◆ getZsl() [1/2]
const Zsl* Diades::Petri::ZslFactory::getZsl |
( |
Place |
place, |
|
|
int |
value, |
|
|
const Zsl * |
zsl |
|
) |
| |
This method implements the find_or_add algorithm of Molinaro
- Parameters
-
place | a Place of net() |
value | a value |
zsl | a Zsl or 0 |
- Returns
- the Zsl(place,value,zsl)
- Postcondition
- if not in the factory, the Zsl is created, guarantee that the Zsl has a unique representative in the Factory
◆ getZsl() [2/2]
const Zsl* Diades::Petri::ZslFactory::getZsl |
( |
unsigned |
id | ) |
|
|
inline |
- Parameters
-
- Returns
- the zsl associated with this id, if not exist return 0
Definition at line 178 of file Zsl.hh.
◆ owner()
const Net* Diades::Petri::ZslFactory::owner |
( |
| ) |
const |
|
inline |
◆ printDot()
void Diades::Petri::ZslFactory::printDot |
( |
const string & |
fileName | ) |
const |
Export a dot output of the factory for debugging
- Parameters
-
fileName | the name of the output file |
◆ printTable()
void Diades::Petri::ZslFactory::printTable |
( |
| ) |
|
◆ printZsl()
string Diades::Petri::ZslFactory::printZsl |
( |
const Zsl * |
zsl | ) |
const |
|
inline |
◆ _negTable
vector< vector< unordered_map<unsigned, Zsl *> > > Diades::Petri::ZslFactory::_negTable |
|
private |
◆ _net
const Net* Diades::Petri::ZslFactory::_net |
|
private |
◆ _posTable
vector< vector< unordered_map<unsigned, Zsl *> > > Diades::Petri::ZslFactory::_posTable |
|
private |
◆ _table
vector<Zsl *> Diades::Petri::ZslFactory::_table |
|
private |
The documentation for this class was generated from the following file:
- /home/yannick/laas/redmine/tools/diades/include/diades/petri/Zsl.hh