org.vigia.server.driver.camera
Class CameraCommandListener

java.lang.Object
  extended by org.vigia.server.driver.camera.CameraCommandListener
All Implemented Interfaces:
CommandListener

public class CameraCommandListener
extends java.lang.Object
implements CommandListener

An implementation of the CommandListener for the camera.

Author:
jrios & jesus

Field Summary
protected  Driver driver
          The camera's driver.
 
Constructor Summary
CameraCommandListener(Driver driver)
          Creates a new CameraCommandListener.
 
Method Summary
 void onClose()
          Close the video streaming.
 void onInit(int clientPort)
          Initializes the camera and starts the video streaming to the client.
 void onMove(int pan, int tilt, int zoom)
          Receives a move command from the client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

driver

protected Driver driver
The camera's driver.

Constructor Detail

CameraCommandListener

public CameraCommandListener(Driver driver)
Creates a new CameraCommandListener.

Parameters:
driver - The camera's driver.
Method Detail

onInit

public void onInit(int clientPort)
Description copied from interface: CommandListener
Initializes the camera and starts the video streaming to the client.

Specified by:
onInit in interface CommandListener
Parameters:
clientPort - The client's port.
See Also:
CommandListener.onInit(int)

onMove

public void onMove(int pan,
                   int tilt,
                   int zoom)
Description copied from interface: CommandListener
Receives a move command from the client.

Specified by:
onMove in interface CommandListener
Parameters:
pan - pan position.
tilt - tilt position.
zoom - zoom position.
See Also:
CommandListener.onMove(int, int, int)

onClose

public void onClose()
Description copied from interface: CommandListener
Close the video streaming.

Specified by:
onClose in interface CommandListener
See Also:
CommandListener.onClose()