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

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • getSystemService (Context)
  • onCreateOptionsMenu (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Top plugins for WebStorm
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