|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vigia.client.communications.RemoteCameraCommunicator
public class RemoteCameraCommunicator
An implementation of the client communication interface.
| Field Summary | |
|---|---|
protected ControlCommunicator |
controlCommunicator
The control communicator. |
protected DataCommunicator |
dataCommunicator
The data communicator. |
| Constructor Summary | |
|---|---|
RemoteCameraCommunicator(java.lang.String host,
int controlPort,
int dataPort)
Creates a new communicator and connects with the remote server. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DataCommunicator dataCommunicator
protected ControlCommunicator controlCommunicator
| Constructor Detail |
|---|
public RemoteCameraCommunicator(java.lang.String host,
int controlPort,
int dataPort)
throws java.net.UnknownHostException,
java.io.IOException
host - The remote host.controlPort - The remote control port.dataPort - The local data port.
java.io.IOException - Error with the IO.
java.net.UnknownHostException - Host not found.| Method Detail |
|---|
public void addLogListener(LogListener controlListener)
Communicator
addLogListener in interface CommunicatorcontrolListener - an implementation of the control listener.Communicator.addLogListener(org.vigia.shared.communications.LogListener)public void addFrameListener(FrameListener dataListener)
Communicator
addFrameListener in interface CommunicatordataListener - an implementation of the data listener.Communicator.addFrameListener(org.vigia.shared.communications.FrameListener)
public void move(int pan,
int tilt,
int zoom)
throws java.io.IOException
Communicator
move in interface Communicatorpan - pan position.tilt - tilt position.zoom - zoom position.
java.io.IOException - Error sending the command.Communicator.move(int, int, int)
public void close()
throws java.io.IOException
Communicator
close in interface Communicatorjava.io.IOException - Error closing the communications.Communicator.close()public boolean isClosed()
Communicator
isClosed in interface CommunicatorCommunicator.isClosed()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||