org.vigia.client.communications
Interface Communicator

All Known Implementing Classes:
RemoteCameraCommunicator

public interface Communicator

The common interface for all the client communication implementations.

Author:
jrios

Method Summary
 void addFrameListener(FrameListener dataListener)
          Adds a listener to obtain the frames from the remote camera.
 void addLogListener(LogListener controlListener)
          Adds a listener to obtain control messages from the remote camera.
 void close()
          Closes the communication with the camera.
 boolean isClosed()
          Check if the communications are closed.
 void move(int pan, int tilt, int zoom)
          Send to the remote camera a move command in an absolute way.
 

Method Detail

addFrameListener

void addFrameListener(FrameListener dataListener)
Adds a listener to obtain the frames from the remote camera.

Parameters:
dataListener - an implementation of the data listener.

addLogListener

void addLogListener(LogListener controlListener)
Adds a listener to obtain control messages from the remote camera.

Parameters:
controlListener - an implementation of the control listener.

move

void move(int pan,
          int tilt,
          int zoom)
          throws java.io.IOException
Send to the remote camera a move command in an absolute way.

Parameters:
pan - pan position.
tilt - tilt position.
zoom - zoom position.
Throws:
java.io.IOException - Error sending the command.

close

void close()
           throws java.io.IOException
Closes the communication with the camera.

Throws:
java.io.IOException - Error closing the communications.

isClosed

boolean isClosed()
Check if the communications are closed.

Returns:
Is it's closed.