Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::demo::test::DemoTest Class Reference

List of all members.

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"

Detailed Description

Check the sending of the messages done by the java and C++ components. The check is done getting the components and invoking the fault and terminate_fault method. The generated output is checked for correctness by TAT

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.

Author:
acaproni


Constructor & Destructor Documentation

alma::demo::test::DemoTest::DemoTest  )  [inline]
 

Constructor


Member Function Documentation

void alma::demo::test::DemoTest::connectSrcChannel  )  [inline, private]
 

Connect to the NC of the sources

void alma::demo::test::DemoTest::disconnect  )  [inline]
 

boolean alma::demo::test::DemoTest::getAlarmServiceComponent  )  [inline]
 

Get the AS component. The test does not need such component but this forces the AS to run.

Returns:
If the reference to the AS is valid

void alma::demo::test::DemoTest::main String[]  args  )  [inline, static]
 

The starting point of the test

Parameters:
args 

synchronized void alma::demo::test::DemoTest::receive ACSJMSMessageEntity  msg  )  [inline]
 

The method recives all the messages published in the NC by the sources

Parameters:
msg The message received from the NC
See also:
alma.acs.nc.Consumer

void alma::demo::test::DemoTest::releaseAlarmServiceComponent  )  [inline]
 

Relese the ASC (if it is not null)

void alma::demo::test::DemoTest::setupSourceListener  )  [inline, private]
 

Setup the listener for the sources

void alma::demo::test::DemoTest::testCppComponents  )  [inline]
 

Get the C++ Mount component and invoke the fault and terminate fault method

void alma::demo::test::DemoTest::testJavaMR  )  [inline]
 

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)

void alma::demo::test::DemoTest::testJavaNR  )  [inline]
 

1. Get the java components for the NODE reduction

  • AlarmSystem (not needed but in this way we are sure it is running)
  • PS
  • Mount
  • Antenna

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)


Member Data Documentation

AlarmService alma::demo::test::DemoTest::alarmSvc = null [package]
 

Logger alma::demo::test::DemoTest::logger [package]
 

AdvancedComponentClient alma::demo::test::DemoTest::m_client [private]
 

Consumer alma::demo::test::DemoTest::m_consumer = null [private]
 

ContainerServices alma::demo::test::DemoTest::m_contSvcs [private]
 

final String alma::demo::test::DemoTest::srcChName = "CMW.ALARM_SYSTEM.ALARMS.SOURCES.ALARM_SYSTEM_SOURCES" [static, private]
 

Actually there is only one channel used by all sources to publish alarms


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:03:59 2009 for ACS Java API by doxygen 1.3.8