Public Member Functions | |
DemoTest () | |
void | disconnect () |
boolean | getAlarmServiceComponent () |
void | releaseAlarmServiceComponent () |
void | testJavaNR () |
void | testJavaMR () |
void | testCppComponents () |
synchronized void | receive (ACSJMSMessageEntity msg) |
Static Public Member Functions | |
void | main (String[] args) |
Package Attributes | |
Logger | logger |
AlarmService | alarmSvc = null |
Private Member Functions | |
void | connectSrcChannel () |
void | setupSourceListener () |
Private Attributes | |
AdvancedComponentClient | m_client |
ContainerServices | m_contSvcs |
Consumer | m_consumer = null |
Static Private Attributes | |
final String | srcChName = "CMW.ALARM_SYSTEM.ALARMS.SOURCES.ALARM_SYSTEM_SOURCES" |
NOTE: the reduction operated by the AS is also checked because it consists of a couple of booleans in the messages published by the service.
|
Constructor |
|
Connect to the NC of the sources |
|
|
|
Get the AS component. The test does not need such component but this forces the AS to run.
|
|
The starting point of the test
|
|
The method recives all the messages published in the NC by the sources
|
|
Relese the ASC (if it is not null) |
|
Setup the listener for the sources |
|
Get the C++ Mount component and invoke the fault and terminate fault method |
|
1. Get the component to test the Multiplicity reduction 2. call the fault and the terminate methods to activate the reduction (the MR causes the generation of another alarm when the threshold is passed) |
|
1. Get the java components for the NODE reduction
2. Call the fult method of the PS (it will generate a chain of failures up to the Antenna) 3. Call the terminate_fault method of the PS (that will generate a second chain of failures) |
|
|
|
|
|
|
|
|
|
|
|
Actually there is only one channel used by all sources to publish alarms |