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

fr.esrf.TangoApi.CallBack Maven / Gradle / Ivy

//+======================================================================
// $Source$
//
// Project:   Tango
//
// Description:  java source code for the TANGO client/server API.
//
// $Author: pascal_verdier $
//
// Copyright (C) :      2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,
//						European Synchrotron Radiation Facility
//                      BP 220, Grenoble 38043
//                      FRANCE
//
// This file is part of Tango.
//
// Tango is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// 
// Tango is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
// 
// You should have received a copy of the GNU Lesser General Public License
// along with Tango.  If not, see .
//
// $Revision: 25296 $
//
//-======================================================================


package fr.esrf.TangoApi;

import fr.esrf.TangoApi.events.EventData;

/**
 * Class Description :
* This class define the object to be be called at * command_inout/reat_attribute/write_attribute asynchronous call reply. *

*

*
Usage example:
*
    * class MyCallback extends CallBack
    * {
      * public void cmd_ended(CmdDoneEvent evt)
      * {
        * if (evt.err)
        * Except.print_exception(evt.errors);
        * else
        * System.out.println("The command " + evt.cmdname +
          * " returns " + evt.argout.extractDouble());
      * }
    * }
    *
    * class MyClass
    * {
      * public set_read_current(double setpoint)
      * {
        * : : :
        * : : :
        * : : :
        * DeviceData data = new DeviceData();
        * data.insert(setpoint);
        * dev.command_inout_asynch("SetReadCurrent", data, MyCallback);
        * : : :
        * : : :
        * : : :
      * }
    * }
    *
*/ public class CallBack implements java.io.Serializable { //=============================================================== //=============================================================== public void cmd_ended(CmdDoneEvent evt) { } //=============================================================== //=============================================================== public void attr_read(AttrReadEvent evt) { } //=============================================================== //=============================================================== public void attr_written(AttrWrittenEvent evt) { } //=============================================================== //=============================================================== public void push_event(EventData evt) { } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy