org.vigia.client.communications
Interface Communication

All Known Implementing Classes:
CommunicationImpl

public interface Communication

The common interface for all the communication implementations.

Author:
jrios

Nested Class Summary
static class Communication.EError
          The different kinds of errors.
 
Method Summary
 void addControlListener(ControlListener controlListner)
          Adds a listener to obtain control messages from the remote camera.
 void addDataListener(DataListener dataListener)
          Adds a listener to obtain the frames from the remote camera.
 void init(int pan, int tilt, int zoom)
          Initializes the remote camera properly, moves it to the start position and starts the video transmission.
 void move(int dPan, int dTilt, int dZoom)
          Send to the remote camera a move command in a relative way.
 

Method Detail

addDataListener

void addDataListener(DataListener dataListener)
Adds a listener to obtain the frames from the remote camera.

Parameters:
dataListener - an implementation of the data listener.

addControlListener

void addControlListener(ControlListener controlListner)
Adds a listener to obtain control messages from the remote camera.

Parameters:
controlListner - an implementation of the control listener.

init

void init(int pan,
          int tilt,
          int zoom)
Initializes the remote camera properly, moves it to the start position and starts the video transmission.

Parameters:
pan - initial pan position.
tilt - initial tilt position.
zoom - initial zoom position.

move

void move(int dPan,
          int dTilt,
          int dZoom)
Send to the remote camera a move command in a relative way.

Parameters:
dPan - increment of pan.
dTilt - increment of tilt.
dZoom - increment of zoom.