public class AlarmModelEvent
extends java.util.EventObject
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
ALARM_ADDED
Identifies alarm added into alarm model.
|
static int |
ALARM_CLEARED
Identifies alarms was been removed all the from alarm model.
|
static int |
ALARM_REMOVED
Identifies alarm removed from alarm model.
|
Constructor and Description |
---|
AlarmModelEvent(AlarmModel model,
Alarm alarm,
int type)
Creates a alarm model event object.
|
Modifier and Type | Method and Description |
---|---|
Alarm |
getAlarm()
Return the related alarm object.
|
AlarmModel |
getAlarmModel()
Return the event source alarm model.
|
int |
getType()
Event type which defined in this class above.
|
public static final int ALARM_ADDED
public static final int ALARM_REMOVED
public static final int ALARM_CLEARED
public AlarmModelEvent(AlarmModel model, Alarm alarm, int type)
model
- AlarmModel alarm model the event occurredalarm
- Alarm the alarm data related to the eventtype
- int the change type. Legal values are:
AlarmModelEvent.ALARM_ADDED
AlarmModelEvent.ALARM_REMOVED
AlarmModelEvent.ALARM_CLEAR
public AlarmModel getAlarmModel()
public Alarm getAlarm()
public int getType()
AlarmModelEvent.ALARM_ADDED
AlarmModelEvent.ALARM_REMOVED
AlarmModelEvent.ALARM_CLEAR
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.