congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
FloatResource.exists
Code IndexAdd Tabnine to your IDE (free)

How to use
exists
method
in
org.ogema.core.model.simple.FloatResource

Best Java code snippets using org.ogema.core.model.simple.FloatResource.exists (Showing top 7 results out of 315)

origin: org.ogema.drivers/homematic-xmlrpc-hl

conn.registerControlledResource(weatherChannel, reading.getParent());
if (!reading.exists()) {
  reading.create();
  reading.getParent().activate(true);
origin: org.ogema.drivers/homematic-xmlrpc-hl

conn.registerControlledResource(weatherChannel, reading.getParent());
if (!reading.exists()) {
  reading.create();
  reading.getParent().activate(true);
origin: org.ogema.drivers/homematic-xmlrpc-hl

if (!reading.exists()) {
  reading.create();
  thermos.activate(true);
if (!reading.exists()) {
  reading.create();
  thermos.activate(true);
origin: org.ogema.ref-impl/resource-manager

final Float value = (resource.exists()) ? resource.getValue() : null;
final RwPair<Float> pair = m_floatMap.get(path);
pair.read = value;
origin: org.ogema.drivers/homematic-xmlrpc-hl

if (!reading.exists()) {
  reading.create();
  thermos.activate(true);
if (!reading.exists()) {
  reading.create();
  thermos.activate(true);
origin: org.smartrplace.apps/smartrplace-util-proposed

@Override
public void onPOSTComplete(String data, OgemaHttpRequest req) {
  FloatResource source = getResource(sva, req, FloatResource.class);
  String val = myField.getValue(req);
  float value;
  try {
    value  = Float.parseFloat(val);
  } catch (NumberFormatException | NullPointerException e) {
    if(alert != null) alert.showAlert(notAllowedMessageUsed, false, req);
    return;
  }
  if (value < minimumAllowed) {
    if(alert != null) alert.showAlert(notAllowedMessageUsed, false, req);
    return;
  }
  if (value > maximumAllowed) {
    if(alert != null) alert.showAlert(notAllowedMessageUsed, false, req);
    return;
  }
  if(!source.exists()) {
    source.create();
    setValue(source, value);
    source.activate(true);
  } else {
    setValue(source, value);
  }
  if(alert != null) alert.showAlert("New value: " + value, true, req);
}

origin: org.ogema.ref-impl/resource-manager

final RwPair<Float> pair = m_floatMap.get(path);
final Float value = pair.write;
if (!resource.exists()) {
  pair.read = null;
} else if (value == null) {
org.ogema.core.model.simpleFloatResourceexists

Popular methods of FloatResource

  • getValue
  • setValue
  • create
  • getHistoricalData
  • isActive
  • activate
  • addDecorator
  • addValueListener
  • historicalData
  • program
  • addStructureListener
  • forecast
  • addStructureListener,
  • forecast,
  • getParent,
  • getPath,
  • getSubResource,
  • removeStructureListener,
  • removeValueListener,
  • requestAccessMode,
  • setAsReference

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • startActivity (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • JTable (javax.swing)
  • Top plugins for Android Studio
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