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

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

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

origin: org.smartrplace.sim/resource-simulation

private static long getForecastHorizon(final ConfigPattern config) {
  if (config.forecastHorizon.isActive()) {
    final long try0 = config.forecastHorizon.getValue();
    if (try0 > 0)
      return try0;
  }
  return 24 * 60 * 60 * 1000; // one day
}

origin: org.ogema.drivers/remote-rest-connector

protected boolean needsPushListener() {
  if (isRecursivePushTrigger())
    return true;
  return !con.pushInterval().isActive();
}
origin: org.ogema.tools/system-supervision

public static long getInterval(final TimeResource itvRes, long defaultItv) {
  long proposed = 0;
  if (itvRes.isActive())
    proposed = itvRes.getValue();
  if (proposed < MIN_SUPERVISION_ITV) {
    proposed = defaultItv;
    itvRes.<TimeResource> create().setValue(defaultItv);
    itvRes.activate(false);
  }
  return proposed;
}
origin: org.smartrplace.apps/smartrplace-util-proposed

  public void onGET(OgemaHttpRequest req) {
    long value;
    if(provider != null) {
      LabelLongValue llv = provider.getValue(req);
      if(llv.alternativeText != null) {
        myLabel.setText(llv.alternativeText, req);
        return;						
      } else {
        value = llv.value;
      }
    } else {
      TimeResource source = getResource(sva, req, null);
      if ((source == null)||(!source.isActive())) {
        myLabel.setText("n.a.", req);
        return;
      } else {
        value = source.getValue();
      }
    }
    myLabel.setText(ApacheFileAdditions.byteCountToDisplaySize(BigInteger.valueOf(value)), req);
  };
};
origin: org.ogema.tools/resource-manipulators

if (item.updateInterval().isActive()) {
  long val = item.updateInterval().getValue();
  if (val < MINIMUM_UPDATE_INTERVAL)
  if (!act.isActive() || !act.ageThreshold().isActive())
    continue;
  TimeSeriesReduction tsr = null;
    tsr = new DeletionAction(am);
  else if (act instanceof ScheduleDownsamplingAction &&
      ((ScheduleDownsamplingAction) act).minInterval().isActive()) 
    tsr = new InterpolationAction(((ScheduleDownsamplingAction) act).minInterval().getValue(), am);
  else if (act instanceof ScheduleStepsReductionAction) 
origin: org.ogema.drivers/channel-mapper-v2

if (pattern.samplingInterval.isActive())
  samplingPeriod = pattern.samplingInterval.getValue();
else
origin: org.smartrplace.apps/smartrplace-util-proposed

public void onGET(OgemaHttpRequest req) {
  TimeResource source = getResource(sva, req, null);
  if ((source == null)||(!source.isActive())) {
    myLabel.setText("n.a.", req);
    return;
org.ogema.core.model.simpleTimeResourceisActive

Popular methods of TimeResource

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • JCheckBox (javax.swing)
  • JLabel (javax.swing)
  • Top plugins for WebStorm
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