org.vigia.client.communications
Class CommunicationImpl

java.lang.Object
  extended by org.vigia.client.communications.CommunicationImpl
All Implemented Interfaces:
Communication

public class CommunicationImpl
extends java.lang.Object
implements Communication

An implementation of the Communication interface.

Author:
jrios

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.vigia.client.communications.Communication
Communication.EError
 
Constructor Summary
CommunicationImpl()
           
 
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 pan, int tilt, int zoom)
          Send to the remote camera a move command in a relative way.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommunicationImpl

public CommunicationImpl()
Method Detail

addControlListener

public void addControlListener(ControlListener controlListner)
Description copied from interface: Communication
Adds a listener to obtain control messages from the remote camera.

Specified by:
addControlListener in interface Communication
Parameters:
controlListner - an implementation of the control listener.
See Also:
Communication.addControlListener(org.vigia.client.communications.ControlListener)

addDataListener

public void addDataListener(DataListener dataListener)
Description copied from interface: Communication
Adds a listener to obtain the frames from the remote camera.

Specified by:
addDataListener in interface Communication
Parameters:
dataListener - an implementation of the data listener.
See Also:
Communication.addDataListener(org.vigia.client.communications.DataListener)

init

public void init(int pan,
                 int tilt,
                 int zoom)
Description copied from interface: Communication
Initializes the remote camera properly, moves it to the start position and starts the video transmission.

Specified by:
init in interface Communication
Parameters:
pan - initial pan position.
tilt - initial tilt position.
zoom - initial zoom position.
See Also:
Communication.init(int, int, int)

move

public void move(int pan,
                 int tilt,
                 int zoom)
Description copied from interface: Communication
Send to the remote camera a move command in a relative way.

Specified by:
move in interface Communication
Parameters:
pan - increment of pan.
tilt - increment of tilt.
zoom - increment of zoom.
See Also:
Communication.move(int, int, int)