DiaDes
0.1
DIAgnosisofDiscrete-EventSystem
|
#include <Domains.hh>
Public Member Functions | |
DomainFactory (AltaricaModel &model) | |
void | init () |
void | clear () |
~DomainFactory () | |
const Domain & | nullDomain () const |
const Domain & | getBooleans () const |
const Domain & | getIntegers () const |
const Domain & | newDomain (const NodeDecl &nodeDecl) |
const Domain & | newDomain (const Identifier &name, const Domain &associatedDomain, NodeDecl &nodeDecl) |
const Domain & | newDomain (const Identifier &name, const Value &min, const Value &max, NodeDecl &nodeDecl) |
const Domain & | newDomain (const Identifier &name, const ValueEnumeration &enumeration, NodeDecl &nodeDecl) |
const Domain & | newDomain (const Identifier &name, const Domain::StructureFields &structure, NodeDecl &nodeDecl) |
const Domain & | newDomain (const Identifier &name, const Domain &domain, unsigned size, NodeDecl &nodeDecl) |
const AltaricaModel & | owner () const |
AltaricaModel & | owner () |
Private Attributes | |
AltaricaModel & | _owner |
vector< map< Identifier, Domain::ConstPointer > > | _nodeDeclDomains |
vector< map< Identifier, bool > > | _referenceDomains |
vector< Domain::Pointer > | _basicDomains |
Exception | |
typedef Utils::Exception< DomainFactory > | Exception |
static string | typeName () |
Factory to create new Domain objects
Definition at line 868 of file Domains.hh.
Definition at line 875 of file Domains.hh.
Diades::Altarica::DomainFactory::DomainFactory | ( | AltaricaModel & | model | ) |
Default constructor
Diades::Altarica::DomainFactory::~DomainFactory | ( | ) |
Destructor
void Diades::Altarica::DomainFactory::clear | ( | ) |
|
inline |
Definition at line 909 of file Domains.hh.
Referenced by Diades::Altarica::AltaricaModel::getBooleans().
|
inline |
Definition at line 914 of file Domains.hh.
Referenced by Diades::Altarica::AltaricaModel::getIntegers().
void Diades::Altarica::DomainFactory::init | ( | ) |
const Domain& Diades::Altarica::DomainFactory::newDomain | ( | const Identifier & | name, |
const Domain & | associatedDomain, | ||
NodeDecl & | nodeDecl | ||
) |
const Domain& Diades::Altarica::DomainFactory::newDomain | ( | const Identifier & | name, |
const Value & | min, | ||
const Value & | max, | ||
NodeDecl & | nodeDecl | ||
) |
const Domain& Diades::Altarica::DomainFactory::newDomain | ( | const Identifier & | name, |
const ValueEnumeration & | enumeration, | ||
NodeDecl & | nodeDecl | ||
) |
const Domain& Diades::Altarica::DomainFactory::newDomain | ( | const Identifier & | name, |
const Domain::StructureFields & | structure, | ||
NodeDecl & | nodeDecl | ||
) |
const Domain& Diades::Altarica::DomainFactory::newDomain | ( | const Identifier & | name, |
const Domain & | domain, | ||
unsigned | size, | ||
NodeDecl & | nodeDecl | ||
) |
Array Domain constructor
name | an Identifier that represents a Domain (if name is empty, it is considered as a shadow domain) |
domain | the domain of any Variable contained in the array |
the | size of the array domain |
nodeDecl | the NodeDecl where this Domain is declared |
|
inline |
Definition at line 904 of file Domains.hh.
Referenced by Diades::Altarica::AltaricaModel::nullDomain().
const AltaricaModel& Diades::Altarica::DomainFactory::owner | ( | ) | const |
Return the owner of the factory
AltaricaModel& Diades::Altarica::DomainFactory::owner | ( | ) |
Return the owner of the factory
|
inlinestatic |
Definition at line 876 of file Domains.hh.
|
private |
Definition at line 883 of file Domains.hh.
|
private |
Definition at line 881 of file Domains.hh.
|
private |
Definition at line 880 of file Domains.hh.
|
private |
Definition at line 882 of file Domains.hh.