safehome.device.netcamera
Class CameraPeer

java.lang.Object
  extended by safehome.device.netcamera.CameraPeer
All Implemented Interfaces:
Runnable

public class CameraPeer
extends Object
implements Runnable

This class represents a camera peer.

A camera peer has a camera device and is connected to SafeHome core. It sends images from a camera device to SafeHome core and receives control signals from SafeHome core.

Author:
yhkim

Constructor Summary
CameraPeer(String safehomeCoreIP, int safehomeCorePort)
          Constructs a camera peer.
 
Method Summary
 void readControl()
          Receives control signals from SafeHome core and does the corresponding actions
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CameraPeer

CameraPeer(String safehomeCoreIP,
           int safehomeCorePort)
     throws UnknownHostException,
            IOException
Constructs a camera peer. A camera peer has a camera device instance and a socket connected to SAfeHome core.

Parameters:
safehomeCoreIP - the host name of SafeHome core
safehomeCorePort - the port number
Throws:
UnknownHostException - if the IP address of the host could not be determined.
IOException - if an I/O error occurs when creating the socket.
Method Detail

run

public void run()
Specified by:
run in interface Runnable

readControl

public void readControl()
Receives control signals from SafeHome core and does the corresponding actions