congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Alarm.getAlarmSeverity
Code IndexAdd Tabnine to your IDE (free)

How to use
getAlarmSeverity
method
in
org.diirt.vtype.Alarm

Best Java code snippets using org.diirt.vtype.Alarm.getAlarmSeverity (Showing top 6 results out of 315)

origin: org.diirt/datasource-sample

private void setAlarm(Alarm alarm) {
  if (alarm != null) {
    pvTextValue.setBorder(borders.get(alarm.getAlarmSeverity()));
  } else {
    pvTextValue.setBorder(borders.get(AlarmSeverity.NONE));
  }
}
origin: org.diirt/datasource-sample

private String alarmSeverityOf(Object value) {
  if (value == null)
    return "";
  return ValueUtil.alarmOf(value).getAlarmSeverity().toString();
}
origin: org.diirt/datasource-formula

@Override
public Object calculate(List<Object> args) {
  if (NullUtils.containsNull(args)) {
    return null;
  }
  Object arg = args.get(0);
  Alarm alarm = ValueUtil.alarmOf(arg);
  return newVEnum(alarm.getAlarmSeverity().ordinal(), AlarmSeverity.labels(),
      alarm,
      ValueUtil.latestValidTimeOrNowOf(args));
}
origin: org.diirt/vtype-json

public JsonVTypeBuilder addAlarm(Alarm alarm) {
  return add("alarm", new JsonVTypeBuilder()
      .add("severity", alarm.getAlarmSeverity().toString())
      .add("status", alarm.getAlarmName()));
}
origin: org.diirt/datasource-formula

@Override
public Object calculate(final List<Object> args) {
  Alarm alarm = ValueUtil.highestSeverityOf(args, true);
  Time time = ValueUtil.timeOf(alarm);
  if (time == null) {
    time = ValueFactory.timeNow();
  }
  return ValueFactory.newVEnum(alarm.getAlarmSeverity().ordinal(), AlarmSeverity.labels(), alarm, time);
}
origin: org.diirt.support/diirt-pva

alarmSeverity = noAlarm.getAlarmSeverity();
alarmStatus = noAlarm.getAlarmName();
org.diirt.vtypeAlarmgetAlarmSeverity

Popular methods of Alarm

  • getAlarmName

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • getSharedPreferences (Context)
  • setRequestProperty (URLConnection)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • JList (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now