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

gov.aps.jca.jni.JNIPutCallback Maven / Gradle / Ivy

/**********************************************************************
 *
 *      Original Author: Eric Boucher
 *      Date:            05/05/2003
 *
 *      Experimental Physics and Industrial Control System (EPICS)
 *
 *      Copyright 1991, the University of Chicago Board of Governors.
 *
 *      This software was produced under  U.S. Government contract
 *      W-31-109-ENG-38 at Argonne National Laboratory.
 *
 *      Beamline Controls & Data Acquisition Group
 *      Experimental Facilities Division
 *      Advanced Photon Source
 *      Argonne National Laboratory
 *
 *
 * $Id: JNIPutCallback.java,v 1.3 2006/11/03 11:01:47 msekoranja Exp $
 *
 * Modification Log:
 * 01. 05/07/2003  erb  initial development
 *
 */


package gov.aps.jca.jni;

import gov.aps.jca.*;
import gov.aps.jca.event.*;
import gov.aps.jca.dbr.*;


class JNIPutCallback extends JNICallback {
  protected JNIChannel _source;

  JNIPutCallback(JNIChannel source, EventDispatcher dispatcher, PutListener listener) {
    super(dispatcher, listener);
    _source=source;
  }

  public void fire(int type, int count, long dbrid, int status) {
    dispatch(new PutEvent(_source, DBRType.forValue(type), count, CAStatus.forValue(status)));
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy