alma::acs::alarm::test::panel::TestAlarm Class Reference

Inheritance diagram for alma::acs::alarm::test::panel::TestAlarm:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::alarm::test::panel::TestAlarm:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TestAlarm (String id, boolean child, boolean parent, boolean active, boolean masked, boolean reduced)
String getAction ()
String getAlarmId ()
Collection getCategories ()
String getCause ()
String getConsequence ()
URL getHelpURL ()
String getIdentifier ()
Location getLocation ()
String getPiquetEmail ()
String getPiquetGSM ()
Integer getPriority ()
String getProblemDescription ()
ResponsiblePerson getResponsiblePerson ()
Source getSource ()
Status getStatus ()
String getSystemName ()
Triplet getTriplet ()
boolean isInstant ()
boolean isMultiplicityChild ()
boolean isMultiplicityParent ()
boolean isNodeChild ()
boolean isNodeParent ()
Object clone () throws CloneNotSupportedException

Static Public Member Functions

static TestAlarm generateRndAlarm (String fm)

Static Public Attributes

static int alarm_generator_id = 0

Private Attributes

final String id
boolean child
boolean parent
final TestAlarmStatus status
int priority

Static Private Attributes

static Random rnd = new Random(System.currentTimeMillis())

Detailed Description

Interface for sending alarms to the alarm container.

Author:
acaproni

Constructor & Destructor Documentation

alma::acs::alarm::test::panel::TestAlarm::TestAlarm ( String  id,
boolean  child,
boolean  parent,
boolean  active,
boolean  masked,
boolean  reduced 
) [inline]

Constructor

References priority, rnd, and status.

Referenced by clone(), and generateRndAlarm().


Member Function Documentation

Object alma::acs::alarm::test::panel::TestAlarm::clone (  )  throws CloneNotSupportedException [inline]
static TestAlarm alma::acs::alarm::test::panel::TestAlarm::generateRndAlarm ( String  fm  )  [inline, static]

Helper method returning a random alarm.

The triplet of each alarm is as follows:

  • FF: RND
  • FM: fm+integer
  • FC: 1

The fault member is generated by adding an integer to the passed string, i.e. the FM is a unique identifier.

Parameters:
fm The fault member of the alarm
Returns:
The randomly generated alarm

References alarm_generator_id, rnd, and TestAlarm().

String alma::acs::alarm::test::panel::TestAlarm::getAction (  )  [inline]
String alma::acs::alarm::test::panel::TestAlarm::getAlarmId (  )  [inline]
Collection alma::acs::alarm::test::panel::TestAlarm::getCategories (  )  [inline]
String alma::acs::alarm::test::panel::TestAlarm::getCause (  )  [inline]
String alma::acs::alarm::test::panel::TestAlarm::getConsequence (  )  [inline]
URL alma::acs::alarm::test::panel::TestAlarm::getHelpURL (  )  [inline]
String alma::acs::alarm::test::panel::TestAlarm::getIdentifier (  )  [inline]
Location alma::acs::alarm::test::panel::TestAlarm::getLocation (  )  [inline]
String alma::acs::alarm::test::panel::TestAlarm::getPiquetEmail (  )  [inline]
String alma::acs::alarm::test::panel::TestAlarm::getPiquetGSM (  )  [inline]
Integer alma::acs::alarm::test::panel::TestAlarm::getPriority (  )  [inline]
String alma::acs::alarm::test::panel::TestAlarm::getProblemDescription (  )  [inline]
ResponsiblePerson alma::acs::alarm::test::panel::TestAlarm::getResponsiblePerson (  )  [inline]
Source alma::acs::alarm::test::panel::TestAlarm::getSource (  )  [inline]
Status alma::acs::alarm::test::panel::TestAlarm::getStatus (  )  [inline]
String alma::acs::alarm::test::panel::TestAlarm::getSystemName (  )  [inline]
Triplet alma::acs::alarm::test::panel::TestAlarm::getTriplet (  )  [inline]
boolean alma::acs::alarm::test::panel::TestAlarm::isInstant (  )  [inline]
boolean alma::acs::alarm::test::panel::TestAlarm::isMultiplicityChild (  )  [inline]
boolean alma::acs::alarm::test::panel::TestAlarm::isMultiplicityParent (  )  [inline]
boolean alma::acs::alarm::test::panel::TestAlarm::isNodeChild (  )  [inline]
boolean alma::acs::alarm::test::panel::TestAlarm::isNodeParent (  )  [inline]

Member Data Documentation

The ID used to distinguish alarms in the static generator methods.

Referenced by generateRndAlarm().

true if this node is a child node

Referenced by clone(), and isNodeChild().

The alarm ID

Referenced by getAlarmId().

true if this node is a parent node

Referenced by clone(), and isNodeParent().

The priority

Referenced by getPriority(), and TestAlarm().

Random alma::acs::alarm::test::panel::TestAlarm::rnd = new Random(System.currentTimeMillis()) [static, private]

Random generator

Referenced by generateRndAlarm(), and TestAlarm().

The state of the alarm

Referenced by clone(), getStatus(), and TestAlarm().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2