All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.mcs.jmeasurement.MeasureDataCallback Maven / Gradle / Ivy

The newest version!
/*
 * MCS Media Computer Software Copyright (c) 2005 by MCS
 * -------------------------------------- Created on 23.04.2005 by w.klaas
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package de.mcs.jmeasurement;

/**
 * This is the Interface for the a callback when updating. If you plan to be informed about updating a measurepoint, you
 * must implement this interface and call setMeasureDataCallback() in the MeasureFactory.
 * 
 * @see de.mcs.jmeasurement.MeasureFactory#setMeasureDataCallback(MeasureDataCallback)
 * @author w.klaas
 */
public interface MeasureDataCallback {

  /**
   * This is a callback function. It will be called everytime after a monitor was stopped and before the data will be
   * inserted into the pointdata.
   * 
   * @param point
   *          the measurepoint, where the data will be added.
   * @param monitor
   *          the monitor with the data to be added.
   */
  void setMonitor(MeasurePoint point, Monitor monitor);

  /**
   * This is the callback function. It will be called everytime after a monitor was stopped and after the data is
   * inserted into the pointdata.
   * 
   * @param point
   *          the measurepoint, where the data will be added.
   * @param monitor
   *          the monitor with the data to be added.
   */
  void afterProcessing(MeasurePoint point);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy