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

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

List of all members.

Public Member Functions

 AlarmView (String id, String pri, String timestamp, String desc, String cause, String act, String hostName)
Override boolean equals (Object obj)
Override 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


Member Function Documentation

Override 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

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

Return the formatted timestamp

Returns:
The timestamp

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

Dump the alarm

See also:
Object.toString()


Member Data Documentation

Boolean alma::acs::lasercore::test::stress::category::AlarmView::active = null
 

String alma::acs::lasercore::test::stress::category::AlarmView::alarmID = null
 

String alma::acs::lasercore::test::stress::category::AlarmView::cause = null
 

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

String alma::acs::lasercore::test::stress::category::AlarmView::description = null
 

String alma::acs::lasercore::test::stress::category::AlarmView::hostName
 

Integer alma::acs::lasercore::test::stress::category::AlarmView::priority = null
 

Date alma::acs::lasercore::test::stress::category::AlarmView::sourceTimestamp = null
 

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 on Thu Apr 30 02:53:36 2009 for ACS Java API by doxygen 1.3.8