All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.yamcs.xtce.EnumerationContextAlarm Maven / Gradle / Ivy

There is a newer version: 5.10.7
Show newest version
package org.yamcs.xtce;

/**
 * Context alarms are applied when the ContextMatch is true. Context alarms override Default alarms meaning that if the
 * condition matches, this alarm applies and if the condition does not match, then the defaultAlarm applies.
 *
 * @author nm
 *
 */
public class EnumerationContextAlarm extends EnumerationAlarm {
    private static final long serialVersionUID = 201103300451L;
    private MatchCriteria contextMatch;

    public MatchCriteria getContextMatch() {
        return contextMatch;
    }

    @Override
    public String toString() {
        return "EnumerationContextAlarm(contextMatch:" + getContextMatch() + ", defaultLevel:" + defaultAlarmLevel
                + ", alarmList: " + getAlarmList() + ")";
    }

    public void setContextMatch(MatchCriteria contextMatch) {
        this.contextMatch = contextMatch;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy