#include <new_sim_domain.h>
Inheritance diagram for NewSimulatorDomain:
Public Member Functions | |
SaHpiDomainIdT | DomainId () |
return the own domain id | |
SaHpiTimeoutT & | InsertTimeout () |
return a reference to the insert timeout parameter | |
SaHpiTimeoutT & | ExtractTimeout () |
return a reference to the extraction timeout parameter | |
int | HandlerId () |
return the handler id | |
bool | HasRunningWdt () |
return if a watchdog timer is running | |
bool | HasRunningFumi () |
return if a fumi is running | |
void | SetRunningWdt (bool flag) |
set running watchdog flag | |
void | SetRunningFumi (bool flag) |
set running fumi flag | |
void | ReadLock () |
Setting a read lock. | |
void | ReadUnlock () |
Unlock the reading. | |
void | WriteLock () |
Setting a write lock. | |
void | WriteUnlock () |
Unlock the writing. | |
bool | CheckLock () |
Check if a lock is set. | |
int | Num () |
Return the number of resource in the domain. | |
void | AddResource (NewSimulatorResource *res) |
Add a resource to the domain. | |
bool | CleanupResource (NewSimulatorResource *res) |
Cleanup one resource. | |
void | RemResource (NewSimulatorResource *res) |
Remove a resource from the domain. | |
NewSimulatorResource * | GetResource (int i) |
Get Resource. | |
NewSimulatorResource * | FindResource (NewSimulatorResource *res) |
Find resource by resource pointer. | |
NewSimulatorResource * | FindResource (const NewSimulatorEntityPath &ep) |
Find resource by entity path. | |
NewSimulatorDomain () | |
Constructor. | |
virtual | ~NewSimulatorDomain () |
Destructor. | |
bool | Init (NewSimulatorFile *file) |
Initialization and filling the domain with resources and rdr by calling NewSimulatorFile::Discover(). | |
void | Cleanup () |
Ceanup all resources in the domain. | |
NewSimulatorResource * | VerifyResource (NewSimulatorResource *res) |
Verify Resource. | |
NewSimulatorRdr * | VerifyRdr (NewSimulatorRdr *rdr) |
Verify Rdr. | |
NewSimulatorSensor * | VerifySensor (NewSimulatorSensor *s) |
Verify Sensor. | |
NewSimulatorControl * | VerifyControl (NewSimulatorControl *c) |
Verify Control. | |
NewSimulatorAnnunciator * | VerifyAnnunciator (NewSimulatorAnnunciator *a) |
Verify Annunciator. | |
NewSimulatorWatchdog * | VerifyWatchdog (NewSimulatorWatchdog *c) |
Verify Watchdog. | |
NewSimulatorFumi * | VerifyFumi (NewSimulatorFumi *f) |
Verify Fumi. | |
NewSimulatorDimi * | VerifyDimi (NewSimulatorDimi *d) |
Verify Dimi. | |
NewSimulatorInventory * | VerifyInventory (NewSimulatorInventory *i) |
Verify Inventory. | |
virtual void | AddHpiEvent (oh_event *event)=0 |
abstract method for adding a hpi event | |
virtual oh_evt_queue * | GetHpiEventList ()=0 |
abstract method for getting a hpi event | |
virtual const NewSimulatorEntityPath & | EntityRoot ()=0 |
abstract method for getting a reference on the entity root | |
virtual oh_handler_state * | GetHandler ()=0 |
abstract method for getting a pointer on the handler | |
virtual SaHpiRptEntryT * | FindResource (SaHpiResourceIdT id)=0 |
abstract method for finding a resource with a given id | |
void | Dump (NewSimulatorLog &dump) const |
Dump some information about the resources hold in the domain. | |
Public Attributes | |
cThreadLock | m_initial_discover_lock |
lock m_initial_discover | |
int | m_initial_discover |
> 0 => initial discover in progress | |
Protected Attributes | |
NewSimulatorFile * | m_file |
pointer on the Simulation file to be used | |
SaHpiDomainIdT | m_did |
own domain id | |
NewSimulatorTextBuffer | m_domain_tag |
own domain tag | |
SaHpiTimeoutT | m_insert_timeout |
insertion timeout value | |
SaHpiTimeoutT | m_extract_timeout |
extraction timeout value | |
bool | m_own_domain |
TBD: to be clarified if needed. | |
int | m_handler_id |
id of the used plugin handler | |
bool | m_running_wdt |
flag if a watchdog is running and should be checked | |
bool | m_running_fumi |
flag if a fumi is running and should be checked | |
unsigned int | m_major_version |
Major version. | |
unsigned int | m_minor_version |
Minor version. | |
cThreadLockRw | m_lock |
global lock for reading/writing: | |
cArray< NewSimulatorResource > | m_resources |
Array with all resources of the rpt. |
Inside the method NewSimulatorDomain:Init the preparation for reading the simulation data file is done.
|
Add a resource to the domain.
|
|
Cleanup one resource.
|
|
Dump some information about the resources hold in the domain. For each resource in the array the dump method is called.
|
|
Find resource by entity path.
|
|
Find resource by resource pointer.
|
|
Get Resource.
|
|
Initialization and filling the domain with resources and rdr by calling NewSimulatorFile::Discover().
|
|
Remove a resource from the domain.
|
|
Verify Annunciator.
|
|
Verify Control.
|
|
Verify Dimi.
|
|
Verify Fumi.
|
|
Verify Inventory.
|
|
Verify Rdr.
|
|
Verify Resource.
|
|
Verify Sensor.
|
|
Verify Watchdog.
|