Tabnine Logo
Device.getValue
Code IndexAdd Tabnine to your IDE (free)

How to use
getValue
method
in
ru.iris.common.database.model.devices.Device

Best Java code snippets using ru.iris.common.database.model.devices.Device.getValue (Showing top 6 results out of 315)

origin: MrNeuronix/IRISv2

private void setValue(String uuid, String label, Integer value) {
  Device device = Device.getDeviceByUUID(uuid);
  DeviceValue zv = device.getValue(label);
  if (zv != null) {
    if (!Manager.get().isValueReadOnly(gson.fromJson(zv.getValueId(), ValueId.class))) {
      setTypedValue(gson.fromJson(zv.getValueId(), ValueId.class), String.valueOf(value));
    } else {
      LOGGER.info("Value \"%s\" is read-only! Skip.", label);
    }
  }
}
origin: MrNeuronix/IRISv2

private void updateValue(Device device, String label, String value) {
  DeviceValue deviceValue = device.getValue(label);
  if (deviceValue == null) {
    deviceValue = new DeviceValue();
    deviceValue.setLabel(label);
    deviceValue.setValue(value);
    deviceValue.setReadonly(false);
    deviceValue.setValueId("{ }");
  } else {
    device.setValue(label, value);
  }
}
origin: MrNeuronix/IRISv2

private void updateValue(Device device, String label, String value) {
  DeviceValue deviceValue = device.getValue(label);
  if (deviceValue == null) {
    deviceValue = new DeviceValue();
    deviceValue.setLabel(label);
    deviceValue.setValue(value);
    deviceValue.setReadonly(false);
    deviceValue.setValueId("{ }");
    device.addValue(deviceValue);
  } else {
    device.setValue(label, value);
  }
}
origin: MrNeuronix/IRISv2

  channel = Byte.valueOf(device.getValue("channel").getValue());
} else {
  channel = Double.valueOf(advertisement.getValue().toString()).byteValue();
    if (device.getValue("type") != null && device.getValue("type").getValue().contains("dimmer")) {
      if (level > 99 || level == 99) {
origin: MrNeuronix/IRISv2

    "\"" + Utils.getValue(notification.getValueId()) + "\"");
DeviceValue udvChg = device.getValue(manager.getValueLabel(notification.getValueId()));
origin: MrNeuronix/IRISv2

DeviceValue udv = ZWaveDevice.getValue(label);
ru.iris.common.database.model.devicesDevicegetValue

Popular methods of Device

  • getUuid
  • <init>
  • addValue
  • getSource
  • save
  • setInternalName
  • setInternalType
  • setManufName
  • setNode
  • setProductName
  • setSource
  • setStatus
  • setSource,
  • setStatus,
  • setType,
  • setUuid,
  • getDeviceByNode,
  • getDeviceByUUID,
  • getInternalName,
  • getNode,
  • getProductName

Popular in Java

  • Making http post requests using okhttp
  • findViewById (Activity)
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top PhpStorm plugins
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