Class 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 Detail

      • AlarmAssociation

        public AlarmAssociation()
      • AlarmAssociation

        public AlarmAssociation​(OnmsAlarm situationAlarm,
                                OnmsAlarm relatedAlarm)
      • AlarmAssociation

        public AlarmAssociation​(OnmsAlarm situationAlarm,
                                OnmsAlarm relatedAlarm,
                                java.util.Date mappedTime)
    • 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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object