congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • getSharedPreferences (Context)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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