DataSource
class DataSource
This class allows the storage and retrieval of the attributes of a data source.
A data source is where a simulator retrieves reference data to perform the simulation.
A data source is an internal database, an external database, or a web service that can be accessed using a parametrized uri.
The data sources définition are stored in src/EUREKA/G6KBundle/Resources/data/DataSources.xml
Properties
private Simulator | $simulator | ||
private int | $id | ||
private string | $name | ||
private string | $type | ||
private string | $uri | ||
private string | $method | ||
private int | $database | ||
private string | $description | ||
private array | $tables | ||
private array | $namespaces |
Methods
Constructor of class DataSource
Returns the Simulator object that uses this data source
Returns the ID of this data source.
Sets the ID of this data source.
Returns the name of this data source.
Sets the name of this data source.
Returns the type of this data source : uri, database orinternal
Sets the type of this data source : uri, database or internal
Returns the uri of this data source in case of web service.
Sets the uri of this data source in case of web service.
Returns the HTTP access method of this data source : GET or POST
Sets the HTTP access method of this data source: GET or POST
Returns the ID of the database if the type of this data source is internal or database.
Sets the ID of the database if the type of this data source is internal or database.
Returns the description of this data source.
Sets the description of this data source.
Returns the associative array of namespaces of this data source.
Sets the associative array of namespaces of this data source.
Adds a namespace to the associative array of namespaces of this data source.
Returns the list of tables in the database of this data source.
Sets the list of tables in the database of this data source.
Details
at line 136
void
__construct(Simulator $simulator, int $id, string $name, string $type)
Constructor of class DataSource
at line 150
Simulator
getSimulator()
Returns the Simulator object that uses this data source
at line 161
int
getId()
Returns the ID of this data source.
at line 173
void
setId(int $id)
Sets the ID of this data source.
at line 184
string
getName()
Returns the name of this data source.
at line 196
void
setName(string $name)
Sets the name of this data source.
at line 207
string
getType()
Returns the type of this data source : uri, database orinternal
at line 219
void
setType(string $type)
Sets the type of this data source : uri, database or internal
at line 230
string
getUri()
Returns the uri of this data source in case of web service.
at line 242
void
setUri(string $uri)
Sets the uri of this data source in case of web service.
at line 253
string
getMethod()
Returns the HTTP access method of this data source : GET or POST
at line 265
void
setMethod(string $method)
Sets the HTTP access method of this data source: GET or POST
at line 278
int
getDatabase()
Returns the ID of the database if the type of this data source is internal or database.
at line 290
void
setDatabase(int $database)
Sets the ID of the database if the type of this data source is internal or database.
at line 301
string
getDescription()
Returns the description of this data source.
at line 313
void
setDescription(string $description)
Sets the description of this data source.
at line 327
array
getNamespaces()
Returns the associative array of namespaces of this data source.
The keys in this array are the namespace prefixes. The values in this array are the namespace uris.
at line 342
void
setNamespaces(array $namespaces)
Sets the associative array of namespaces of this data source.
The keys in this array are the namespace prefixes. The values in this array are the namespace uris.
at line 355
void
addNamespace(string $prefix, string $uri)
Adds a namespace to the associative array of namespaces of this data source.
at line 366
array
getTables()
Returns the list of tables in the database of this data source.
at line 378
void
setTables(array $tables)
Sets the list of tables in the database of this data source.
at line 390
void
addTable(Table $table)
Adds a table to the list of tables in the database of this data source.