public class AlarmImpl extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, Alarm
| Constructor and Description |
|---|
AlarmImpl()
Empty constructor for Hibernate.
|
AlarmImpl(AlarmDefinition definition,
Source source,
ResponsiblePerson responsiblePerson) |
AlarmImpl(java.lang.String alarmId,
java.lang.String systemName,
java.lang.String identifier,
java.lang.String problemDescription,
java.lang.Integer priority,
java.lang.String cause,
java.lang.String action,
java.lang.String consequence,
java.lang.String piquetGSM,
java.lang.String piquetEmail,
java.lang.String helpURLString,
java.lang.Boolean instant,
Source source,
Location location,
ResponsiblePerson responsiblePerson,
java.util.Set categories,
Status status,
Triplet triplet,
boolean nodeParent,
boolean multiplicityParent,
boolean nodeChild,
boolean multiplicityChild) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMultiplicityChild(Alarm multiplicityChild)
Sets up the bi-directional relation between the multiplicity parent and the multiplicity child
|
void |
addNodeChild(Alarm nodeChild)
Sets up the bi-directional relation between the node parent and the node child
|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAction() |
java.lang.String |
getAlarmId() |
java.util.Collection |
getCategories() |
java.lang.String |
getCause() |
java.lang.String |
getConsequence() |
AlarmDefinition |
getDefinition() |
java.net.URL |
getHelpURL()
Returns the help URL for this alarm, or
null if there is none or if it is malformed. |
java.lang.String |
getHelpURLString() |
java.lang.String |
getIdentifier() |
java.lang.Boolean |
getInstant() |
Location |
getLocation() |
java.lang.String[] |
getMultiplicityChildren()
Returns the ids of the multiplicity children alarms.
|
java.util.Set |
getMultiplicityChildrenIds()
Returns the ids of the associated multiplicity children
|
java.util.Set |
getMultiplicityParentIds()
Returns the ids of the associated multiplicity parents
|
java.lang.String[] |
getMultiplicityParents()
Returns the ids of the multiplicity parent alarms.
|
java.lang.Integer |
getMultiplicityThreshold() |
java.lang.String[] |
getNodeChildren()
Returns the ids of the node children alarms.
|
java.util.Set |
getNodeChildrenIds()
Returns the ids of the associated node children
|
java.util.Set |
getNodeParentIds()
Returns the ids of the associated node parents
|
java.lang.String[] |
getNodeParents()
Returns the ids of the node parent alarms.
|
java.lang.String |
getPiquetEmail() |
java.lang.String |
getPiquetGSM() |
java.lang.Integer |
getPriority() |
java.lang.String |
getProblemDescription() |
ResponsiblePerson |
getResponsiblePerson() |
Source |
getSource() |
Status |
getStatus() |
java.lang.String |
getSystemName() |
Triplet |
getTriplet() |
int |
hashCode() |
boolean |
hasMultiplicityChildren() |
boolean |
hasMultiplicityParents() |
boolean |
hasNodeChildren() |
boolean |
hasNodeParents() |
void |
removeMultiplicityChild(Alarm multiplicityChild)
Removes the bi-directional relation between the multiplicity parent and the multiplicity child
|
void |
removeNodeChild(Alarm nodeChild)
Removes the bi-directional relation between the node parent and the multiplicity child
|
void |
setAction(java.lang.String action) |
void |
setAlarmId(java.lang.String alarmId) |
void |
setCategories(java.util.Collection newCategories) |
void |
setCause(java.lang.String cause) |
void |
setConsequence(java.lang.String consequence) |
void |
setDefinition(AlarmDefinition definition) |
void |
setHelpURL(java.net.URL newHelpURL) |
void |
setHelpURLString(java.lang.String newHelpURL) |
void |
setIdentifier(java.lang.String identifier) |
void |
setInstant(java.lang.Boolean instant) |
void |
setLocation(Location location) |
void |
setMultiplicityChildrenIds(java.util.Set newMultiplicityChildrenIds) |
void |
setMultiplicityParentIds(java.util.Set newMultiplicityParentIds) |
void |
setMultiplicityThreshold(java.lang.Integer multiplicityThreshold) |
void |
setNodeChildrenIds(java.util.Set newNnodeChildrenIds) |
void |
setNodeParentIds(java.util.Set newNodeParentIds) |
void |
setPiquetEmail(java.lang.String piquetEmail) |
void |
setPiquetGSM(java.lang.String piquetGSM) |
void |
setPriority(java.lang.Integer priority) |
void |
setProblemDescription(java.lang.String problemDescription) |
void |
setResponsiblePerson(ResponsiblePerson responsiblePerson) |
void |
setSource(Source source) |
void |
setStatus(Status status) |
void |
setSystemName(java.lang.String systemName) |
void |
setTriplet(Triplet triplet) |
java.lang.String |
toString() |
public AlarmImpl(java.lang.String alarmId,
java.lang.String systemName,
java.lang.String identifier,
java.lang.String problemDescription,
java.lang.Integer priority,
java.lang.String cause,
java.lang.String action,
java.lang.String consequence,
java.lang.String piquetGSM,
java.lang.String piquetEmail,
java.lang.String helpURLString,
java.lang.Boolean instant,
Source source,
Location location,
ResponsiblePerson responsiblePerson,
java.util.Set categories,
Status status,
Triplet triplet,
boolean nodeParent,
boolean multiplicityParent,
boolean nodeChild,
boolean multiplicityChild)
alarmId - systemName - identifier - problemDescription - priority - cause - action - consequence - piquetGSM - piquetEmail - helpURLString - instant - source - location - responsiblePerson - categories - multiplicityThreshold - status - triplet - public AlarmImpl()
public AlarmImpl(AlarmDefinition definition, Source source, ResponsiblePerson responsiblePerson)
responsiblePerson - source - alarm - public java.lang.String getAlarmId()
getAlarmId in interface Alarmpublic java.lang.String getAction()
public java.util.Collection getCategories()
getCategories in interface Alarmpublic void setCategories(java.util.Collection newCategories)
setCategories in interface Alarmcategories - The categories to set.public java.lang.String getCause()
public java.lang.String getConsequence()
getConsequence in interface Alarmpublic java.lang.String getIdentifier()
getIdentifier in interface Alarmpublic java.lang.Boolean getInstant()
getInstant in interface Alarmpublic void setHelpURL(java.net.URL newHelpURL)
setHelpURL in interface Alarmpublic java.net.URL getHelpURL()
null if there is none or if it is malformed.getHelpURL in interface Alarmnull if there is none or if it is malformed.public Location getLocation()
getLocation in interface Alarmpublic java.lang.String[] getMultiplicityChildren()
getMultiplicityChildren in interface Alarmpublic boolean hasMultiplicityChildren()
hasMultiplicityChildren in interface Alarmpublic boolean hasMultiplicityParents()
hasMultiplicityParents in interface Alarmpublic java.lang.String[] getMultiplicityParents()
getMultiplicityParents in interface Alarmpublic void addMultiplicityChild(Alarm multiplicityChild)
addMultiplicityChild in interface AlarmmultiplicityChild - the alarm to add to this alarm as a multiplicity child. This alarm will at the same time
be added to the child's multiplicity parents.public void removeMultiplicityChild(Alarm multiplicityChild)
removeMultiplicityChild in interface AlarmmultiplicityChild - the alarm to remove from this alarm as a multiplicity child. This alarm will at the same
time be removed from the child's multiplicity parents.public java.lang.String[] getNodeChildren()
getNodeChildren in interface Alarmpublic boolean hasNodeChildren()
hasNodeChildren in interface Alarmpublic java.lang.String[] getNodeParents()
getNodeParents in interface Alarmpublic boolean hasNodeParents()
hasNodeParents in interface Alarmpublic void addNodeChild(Alarm nodeChild)
addNodeChild in interface AlarmnodeChild - the alarm to add to this alarm as a node child. This alarm will at the same time be added to the
child's node parents.public void removeNodeChild(Alarm nodeChild)
removeNodeChild in interface AlarmnodeChild - the alarm to remove from this alarm as a node child. This alarm will at the same time be removed
from the child's node parents.public java.lang.Integer getMultiplicityThreshold()
getMultiplicityThreshold in interface Alarmpublic void setMultiplicityThreshold(java.lang.Integer multiplicityThreshold)
setMultiplicityThreshold in interface Alarmpublic java.lang.String getPiquetEmail()
getPiquetEmail in interface Alarmpublic java.lang.String getPiquetGSM()
getPiquetGSM in interface Alarmpublic java.lang.Integer getPriority()
getPriority in interface Alarmpublic java.lang.String getProblemDescription()
getProblemDescription in interface Alarmpublic ResponsiblePerson getResponsiblePerson()
getResponsiblePerson in interface Alarmpublic Status getStatus()
public void setStatus(Status status)
public java.lang.String getSystemName()
getSystemName in interface Alarmpublic Triplet getTriplet()
getTriplet in interface Alarmpublic AlarmDefinition getDefinition()
getDefinition in interface Alarmpublic void setDefinition(AlarmDefinition definition)
setDefinition in interface Alarmpublic void setAction(java.lang.String action)
public void setAlarmId(java.lang.String alarmId)
setAlarmId in interface AlarmalarmId - The alarmId to set.public void setCause(java.lang.String cause)
public void setConsequence(java.lang.String consequence)
setConsequence in interface Alarmconsequence - The consequence to set.public void setIdentifier(java.lang.String identifier)
setIdentifier in interface Alarmidentifier - The identifier to set.public void setInstant(java.lang.Boolean instant)
setInstant in interface Alarminstant - The instant to set.public void setLocation(Location location)
setLocation in interface Alarmlocation - The location to set.public void setPiquetEmail(java.lang.String piquetEmail)
setPiquetEmail in interface AlarmpiquetEmail - The piquetEmail to set.public void setPiquetGSM(java.lang.String piquetGSM)
setPiquetGSM in interface AlarmpiquetGSM - The piquetGSM to set.public void setPriority(java.lang.Integer priority)
setPriority in interface Alarmpriority - The priority to set.public void setProblemDescription(java.lang.String problemDescription)
setProblemDescription in interface AlarmproblemDescription - The problemDescription to set.public void setResponsiblePerson(ResponsiblePerson responsiblePerson)
setResponsiblePerson in interface AlarmresponsiblePerson - The responsiblePerson to set.public void setSource(Source source)
public void setSystemName(java.lang.String systemName)
setSystemName in interface AlarmsystemName - The systemName to set.public void setTriplet(Triplet triplet)
setTriplet in interface Alarmtriplet - The triplet to set.public java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String getHelpURLString()
public void setHelpURLString(java.lang.String newHelpURL)
newHelpURL - The helpURLString to set.public java.util.Set getMultiplicityChildrenIds()
public void setMultiplicityChildrenIds(java.util.Set newMultiplicityChildrenIds)
newMultiplicityChildrenIds - The new collection of multiplicity children to set.public java.util.Set getMultiplicityParentIds()
public void setMultiplicityParentIds(java.util.Set newMultiplicityParentIds)
newMultiplicityParentIds - The new collection of multiplicity parents to set.public java.util.Set getNodeChildrenIds()
public void setNodeChildrenIds(java.util.Set newNnodeChildrenIds)
newNnodeChildrenIds - The nodeChildrenId to set.public java.util.Set getNodeParentIds()
public void setNodeParentIds(java.util.Set newNodeParentIds)
nodeParentIds - The new collection of node parents to set.