Class Cause
- java.lang.Object
-
- org.opennms.netmgt.correlation.drools.Cause
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Impact
,PossibleCause
,RootCause
public class Cause extends Object implements Serializable
Cause class.
- Version:
- $Id: $
- Author:
- Mathew Brozowski
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Cause.Type
-
Constructor Summary
Constructors Constructor Description Cause(Cause.Type type, Long cause, Event symptom)
Constructor for Cause.Cause(Cause.Type type, Long cause, Event symptom, Integer timerId)
Constructor for Cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addImpacted(Cause cause)
addImpactedLong
getCause()
getCauseSet<Cause>
getImpacted()
getImpactedEvent
getSymptom()
getSymptomInteger
getTimerId()
getTimerIdCause.Type
getType()
getTypevoid
setCause(Long causeNodeId)
setCausevoid
setSymptom(Event symptomEvent)
setSymptomvoid
setTimerId(Integer timerId)
setTimerIdvoid
setType(Cause.Type type)
setTypeString
toString()
toString
-
-
-
Constructor Detail
-
Cause
public Cause(Cause.Type type, Long cause, Event symptom, Integer timerId)
Constructor for Cause.
- Parameters:
type
- aCause.Type
object.cause
- aLong
object.symptom
- aEvent
object.timerId
- aInteger
object.
-
Cause
public Cause(Cause.Type type, Long cause, Event symptom)
Constructor for Cause.
- Parameters:
type
- aCause.Type
object.cause
- aLong
object.symptom
- aEvent
object.
-
-
Method Detail
-
getType
public Cause.Type getType()
getType
- Returns:
- a
Cause.Type
object.
-
setType
public void setType(Cause.Type type)
setType
- Parameters:
type
- aCause.Type
object.
-
setSymptom
public void setSymptom(Event symptomEvent)
setSymptom
- Parameters:
symptomEvent
- aEvent
object.
-
toString
public String toString()
toString
-
-