alma::acs::lasercore::test::stress::category::AlarmView Class Reference

Collaboration diagram for alma::acs::lasercore::test::stress::category::AlarmView:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AlarmView (String id, String pri, String timestamp, String desc, String cause, String act, String hostName)
boolean equals (Object obj)
String toString ()
String getTimestamp ()

Public Attributes

String alarmID = null
Integer priority = null
Date sourceTimestamp = null
String description = null
String cause = null
Boolean active = null
String hostName

Private Attributes

final String TIME_FORMAT = "yyyy'-'MM'-'dd'T'HH':'mm':'ss"
final SimpleDateFormat dateFormat = new SimpleDateFormat(TIME_FORMAT)

Detailed Description

The view of an alarm in the table

Author:
acaproni

Constructor & Destructor Documentation

alma::acs::lasercore::test::stress::category::AlarmView::AlarmView ( String  id,
String  pri,
String  timestamp,
String  desc,
String  cause,
String  act,
String  hostName 
) [inline]

Constructor

Parameters:
id The ID (triplet)
pri Priority
timestamp Timestamp
desc Problem description
act Active

References active, alarmID, description, priority, and sourceTimestamp.


Member Function Documentation

boolean alma::acs::lasercore::test::stress::category::AlarmView::equals ( Object  obj  )  [inline]

Override the Object.equals because we know that 2 alarms are equals if they have the same ID

This method is used to check if a given alarm is already in the vector of the alarms in the table. The same alarm is shown only once but its color must change depending of its stata (active/inactive)

Parameters:
obj The objct to comapre
Returns:
true if the 2 objects are equal

References alarmID.

String alma::acs::lasercore::test::stress::category::AlarmView::getTimestamp (  )  [inline]

Return the formatted timestamp

Returns:
The timestamp

References dateFormat, and sourceTimestamp.

String alma::acs::lasercore::test::stress::category::AlarmView::toString (  )  [inline]

Dump the alarm

See also:
Object.toString()

References active, alarmID, dateFormat, description, priority, and sourceTimestamp.


Member Data Documentation

final SimpleDateFormat alma::acs::lasercore::test::stress::category::AlarmView::dateFormat = new SimpleDateFormat(TIME_FORMAT) [private]

Referenced by getTimestamp(), and toString().

Referenced by AlarmView(), and toString().

Referenced by AlarmView(), and toString().

Referenced by AlarmView(), getTimestamp(), and toString().

final String alma::acs::lasercore::test::stress::category::AlarmView::TIME_FORMAT = "yyyy'-'MM'-'dd'T'HH':'mm':'ss" [private]

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

Generated by  doxygen 1.6.2