fr.esrf.TangoApi
Class CallBack
java.lang.Object
fr.esrf.TangoApi.CallBack
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- EventDispatcher
public class CallBack
- extends java.lang.Object
- implements java.io.Serializable
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);
: : :
: : :
: : :
}
}
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CallBack
public CallBack()
cmd_ended
public void cmd_ended(CmdDoneEvent evt)
attr_read
public void attr_read(AttrReadEvent evt)
attr_written
public void attr_written(AttrWrittenEvent evt)
push_event
public void push_event(EventData evt)