
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) |
The view of an alarm in the table
| alma::acs::lasercore::test::stress::category::AlarmView::AlarmView | ( | String | id, | |
| String | pri, | |||
| String | timestamp, | |||
| String | desc, | |||
| String | cause, | |||
| String | act, | |||
| String | hostName | |||
| ) | [inline] |
Constructor
| id | The ID (triplet) | |
| pri | Priority | |
| timestamp | Timestamp | |
| desc | Problem description | |
| act | Active |
References active, alarmID, description, priority, and sourceTimestamp.
| 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)
| obj | The objct to comapre |
References alarmID.
| String alma::acs::lasercore::test::stress::category::AlarmView::getTimestamp | ( | ) | [inline] |
| String alma::acs::lasercore::test::stress::category::AlarmView::toString | ( | ) | [inline] |
Dump the alarm
References active, alarmID, dateFormat, description, priority, and sourceTimestamp.
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] |
1.6.2