Package org.opennms.netmgt.model
Class AlarmAssociation
- java.lang.Object
-
- org.opennms.netmgt.model.AlarmAssociation
-
- All Implemented Interfaces:
java.io.Serializable
@Entity public class AlarmAssociation extends java.lang.Object implements java.io.Serializable
Entity to store situations and their associated (related) alarms with other details like mappedTime
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AlarmAssociation()
AlarmAssociation(OnmsAlarm situationAlarm, OnmsAlarm relatedAlarm)
AlarmAssociation(OnmsAlarm situationAlarm, OnmsAlarm relatedAlarm, java.util.Date mappedTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.Integer
getId()
java.util.Date
getMappedTime()
OnmsAlarm
getRelatedAlarm()
OnmsAlarm
getSituationAlarm()
int
hashCode()
void
setId(java.lang.Integer id)
void
setMappedTime(java.util.Date mappedTime)
void
setRelatedAlarm(OnmsAlarm relatedAlarm)
void
setSituationAlarm(OnmsAlarm situationAlarm)
java.lang.String
toString()
-
-
-
Method Detail
-
getId
public java.lang.Integer getId()
-
setId
public void setId(java.lang.Integer id)
-
getSituationAlarm
public OnmsAlarm getSituationAlarm()
-
setSituationAlarm
public void setSituationAlarm(OnmsAlarm situationAlarm)
-
getRelatedAlarm
public OnmsAlarm getRelatedAlarm()
-
setRelatedAlarm
public void setRelatedAlarm(OnmsAlarm relatedAlarm)
-
setMappedTime
public void setMappedTime(java.util.Date mappedTime)
-
getMappedTime
public java.util.Date getMappedTime()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-