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

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • getContentResolver (Context)
  • getSharedPreferences (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Collectors (java.util.stream)
  • JComboBox (javax.swing)
  • JLabel (javax.swing)
  • Top 15 Vim Plugins
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