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

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

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

origin: org.ogema.tools/resource-manipulators

public static AbsoluteSchedule getHistoricalDataSchedule(SingleValueResource resource) throws IllegalArgumentException {
  AbsoluteSchedule schedule = null;
  if (resource instanceof FloatResource)
    schedule = ((FloatResource) resource).historicalData();
  else if (resource instanceof IntegerResource)
    schedule = ((IntegerResource) resource).historicalData();
  else if (resource instanceof TimeResource)
    schedule = ((TimeResource) resource).historicalData();
  else if (resource instanceof BooleanResource)
    schedule = ((BooleanResource) resource).historicalData();
  else if (resource instanceof StringResource)
    throw new IllegalArgumentException("Logging for StringResources not possible");
  return schedule;
}
 
origin: org.ogema.tools/resource-utils

/**
 * Returns the <code>historicalData</code> subresource of a {@link FloatResource}, {@link IntegerResource},
 * {@link FloatResource}, {@link BooleanResource}, or {@link TimeResource}.
 * @param resource
 * @return
 * @throws IllegalArgumentException
 *         if <code>resource</code> is a {@link StringResource}. Logging StringResources is not possible.
 */
public static AbsoluteSchedule getHistoricalDataSchedule(SingleValueResource resource) throws IllegalArgumentException {
  AbsoluteSchedule schedule = null;
  if (resource instanceof FloatResource)
    schedule = ((FloatResource) resource).historicalData();
  else if (resource instanceof IntegerResource)
    schedule = ((IntegerResource) resource).historicalData();
  else if (resource instanceof TimeResource)
    schedule = ((TimeResource) resource).historicalData();
  else if (resource instanceof BooleanResource)
    schedule = ((BooleanResource) resource).historicalData();
  else if (resource instanceof StringResource)
    throw new IllegalArgumentException("Logging for StringResources not possible");
  return schedule;
}
 
org.ogema.core.model.simpleFloatResourcehistoricalData

Popular methods of FloatResource

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

Popular in Java

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • getSystemService (Context)
  • onRequestPermissionsResult (Fragment)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Best plugins for Eclipse
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