Tabnine Logo
TimeResource.exists
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.ogema.widgets/widget-extended

@Override
public JSONObject retrieveGETData(OgemaHttpRequest req) {
  if (selectedResource != null && selectedResource.exists()) 
    setDate(selectedResource.getValue());
  else
    setDate(""); // FIXME
  return super.retrieveGETData(req);
}
 
origin: org.ogema.widgets/widget-extended

@Override
public JSONObject onPOST(String data, OgemaHttpRequest req) {
  JSONObject result = super.onPOST(data, req);
  if (selectedResource != null && selectedResource.exists()) 
    selectedResource.setValue(getDateLong());
  else
    setDate("");
  return result;
}
 
origin: org.ogema.ref-impl/resource-manager

final Long value = (resource.exists()) ? resource.getValue() : null;
final RwPair<Long> pair = m_timeMap.get(path);
pair.read = value;
origin: org.smartrplace.apps/smartrplace-util-proposed

  value = getCorerrectedValue(value, mode);
if(!source.exists()) {
  source.create();
  source.setValue(value);
origin: org.ogema.ref-impl/resource-manager

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

Popular methods of TimeResource

  • getValue
  • setValue
  • isActive
  • create
  • getHistoricalData
  • activate
  • historicalData
  • forecast
  • getPath
  • program

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • From CI to AI: The AI layer in your organization
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