public class FilteringRule extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FilteringRule.FilteringRuleFactory
Factory class for creation of filtering rules
|
| Constructor and Description |
|---|
FilteringRule() |
| Modifier and Type | Method and Description |
|---|---|
void |
copyFrom(FilteringRule other)
Copy data from other rule
|
String |
getAlertAsText()
Obtain the string representation of the alert type attribute.
|
org.yamcs.ui.eventviewer.AlertSetting |
getAlertType() |
String |
getEventText() |
String |
getEventType() |
String |
getName() |
String |
getSeverityAsText()
Obtain the string representation of the severity attribute.
|
String |
getShowAsText()
Obtain show attribute as text.
|
String |
getSource() |
boolean |
isActive() |
boolean |
isRemovable() |
boolean |
isShowOn() |
boolean |
matchSeverity(org.yamcs.protobuf.Yamcs.Event.EventSeverity severity)
Match the severity level against the rule severity conditions.
|
void |
setActive(boolean isActive) |
void |
setAlertFromText(String text)
Set alert type from the text representation of the alert type.
|
void |
setAlertType(org.yamcs.ui.eventviewer.AlertSetting alertType) |
void |
setEventText(String eventText) |
void |
setEventType(String eventType) |
void |
setName(String name) |
void |
setRemovable(boolean removable) |
void |
setSeverity(org.yamcs.protobuf.Yamcs.Event.EventSeverity eventSeverity)
Set the severity attributes according to event severity.
|
void |
setSeverityFromText(String text)
Set the severity attributes according to text representation.
|
void |
setShowOn(boolean isShowOn) |
void |
setSource(String source) |
public boolean isRemovable()
public void setRemovable(boolean removable)
removable - the removable to setpublic String getName()
public void setName(String name)
name - the name to setpublic boolean isActive()
public void setActive(boolean isActive)
isActive - the isActive to setpublic String getSource()
public void setSource(String source)
source - the source to setpublic String getEventType()
public void setEventType(String eventType)
eventType - the eventType to setpublic String getEventText()
public void setEventText(String eventText)
eventText - the eventText to setpublic org.yamcs.ui.eventviewer.AlertSetting getAlertType()
public void setAlertType(org.yamcs.ui.eventviewer.AlertSetting alertType)
alertType - the alertType to setpublic boolean isShowOn()
public void setShowOn(boolean isShowOn)
isShowOn - the isShowOn to setpublic boolean matchSeverity(org.yamcs.protobuf.Yamcs.Event.EventSeverity severity)
severity - Severity level to be matched.public void copyFrom(FilteringRule other)
other - Other rulepublic String getSeverityAsText()
public void setSeverityFromText(String text)
text - Text representation of the severity setting.public void setSeverity(org.yamcs.protobuf.Yamcs.Event.EventSeverity eventSeverity)
eventSeverity - Event severitypublic String getAlertAsText()
public void setAlertFromText(String text)
text - Text representation of the alert type.public String getShowAsText()
Copyright © 2018 Space Applications Services. All rights reserved.