public class AlarmId extends Object
Constructor and Description |
---|
AlarmId(ManagedDevice managedDevice,
ConfIdentityRef alarmType,
ManagedObject managedObject)
Constructs an
AlarmId with specificProblem
set to the empty string "". |
AlarmId(ManagedDevice managedDevice,
ConfIdentityRef alarmType,
ManagedObject managedObject,
ConfBuf specificProblem) |
AlarmId(ManagedDevice managedDevice,
ConfIdentityRef alarmType,
ManagedObject managedObject,
String specificProblem)
Constructs an
AlarmId with the specified properties. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
A unique Alarm instance is the combination of a
ManagedDevice ,
a ManagedObject , an alarm-type (ConfIdentityRef ) and
a specific-problem (ConfBuf ). |
ConfIdentityRef |
getAlarmType() |
ManagedDevice |
getManagedDevice() |
ManagedObject |
getManagedObject() |
String |
getSpecificProblem() |
String |
toString() |
public AlarmId(ManagedDevice managedDevice, ConfIdentityRef alarmType, ManagedObject managedObject)
AlarmId
with specificProblem
set to the empty string "".managedDevice
- The managed devicealarmType
- Alarm typemanagedObject
- The managed objectpublic AlarmId(ManagedDevice managedDevice, ConfIdentityRef alarmType, ManagedObject managedObject, String specificProblem)
AlarmId
with the specified properties.managedDevice
- The managed devicealarmType
- Alarm typemanagedObject
- The managed objectspecificProblem
- The Specific problempublic AlarmId(ManagedDevice managedDevice, ConfIdentityRef alarmType, ManagedObject managedObject, ConfBuf specificProblem)
public ConfIdentityRef getAlarmType()
public ManagedDevice getManagedDevice()
public ManagedObject getManagedObject()
public String getSpecificProblem()
public boolean equals(Object o)
A unique Alarm instance is the combination of a ManagedDevice
,
a ManagedObject
, an alarm-type (ConfIdentityRef
) and
a specific-problem (ConfBuf
).
This method compares the specified object with this AlarmId for equality.
Returns true
if and only if the specified object is also an
AlarmId and the four properties also test true for equality.
Specifically, this implementation first checks if the specified object is
this AlarmId. If so, it returns true
; if not, it checks if the
specified object is an AlarmId. If not, it returns false
; if so,
it compares managedDevice, managedObject, alarmType and
specificProblem. If any one of these comparisons returns false
,
this method returns false
, otherwise it returns true
.