net.sf.jhawkingcam
Class CameraArchiveSettings

java.lang.Object
  extended by net.sf.jhawkingcam.CameraArchiveSettings

public class CameraArchiveSettings
extends java.lang.Object

Settings for archiver a camera.


Constructor Summary
CameraArchiveSettings(java.util.Properties p)
          Initialize settings from properties file.
 
Method Summary
 java.lang.String getArchiveFilenamePattern()
           
 long getCaptureInterval()
           
 java.lang.String getHostname()
           
 long getMotionTimeout()
           
 java.lang.String getPassword()
           
 int getPort()
           
 long getPostMotionBuffer()
           
 long getPreMotionBuffer()
           
 HawkingCameraResolution getResolution()
           
 double getRotation()
          The angle by which the camera image will be rotated.
 java.lang.String getUsername()
           
 boolean isMotionDetector()
           
 void setArchiveFilenamePattern(java.lang.String archiveFilenamePattern)
           
 void setCaptureInterval(long captureInterval)
           
 void setHostname(java.lang.String hostname)
           
 void setMotionDetector(boolean motionDetector)
           
 void setMotionTimeout(long motionTimeout)
           
 void setPassword(java.lang.String password)
           
 void setPort(int port)
           
 void setPostMotionBuffer(long postMotionBuffer)
           
 void setPreMotionBuffer(long preMotionBuffer)
           
 void setResolution(HawkingCameraResolution resolution)
           
 void setRotation(double rotation)
          Set the angle to rotate the image by in degrees
 void setUsername(java.lang.String username)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CameraArchiveSettings

public CameraArchiveSettings(java.util.Properties p)
Initialize settings from properties file.

Parameters:
p - properties Proerties in poperty file are as follows:
  • archiveFilenamePattern - string defining filename for saved images may use ${host} for camera ip or host name, ${month} for two digit month, ${day} for two digit day in month, ${monthName} for full month name, ${hour} for 00-23 hour or day, ${minute} for two digit minute of the hour and ${second} for two digit second in the minute. Any directories in the pattern will be created using File.mkdirs() if they don't exist already.
  • captureInterval - time between image captures in milliseconds, defaults to 1000ms
  • hostname - ip address or host name of camera
  • password - password to log in to camera
  • username - username to log in to camera home page
  • resolution - camera resolution to use: P640, P320 or P160, defaults to P640
  • motionDetector - true to only capture images when motion is detected (requires Java Advanced Imaging API - JAI), defaults to true
  • preMotionBuffer - number of milliseconds worth of images to store before motion starts (limites to memory size), default to 10000
  • postMotionBuffer - number of milliseconds worth of images to store once motion has stopped, defaults to 10000
  • motionTimeout - number of milliseconds of "quiet" before we decide there's no motion anymore, defaults to 10000
Method Detail

getCaptureInterval

public long getCaptureInterval()

setCaptureInterval

public void setCaptureInterval(long captureInterval)

getHostname

public java.lang.String getHostname()

setHostname

public void setHostname(java.lang.String hostname)

getPort

public int getPort()

setPort

public void setPort(int port)

getUsername

public java.lang.String getUsername()

setUsername

public void setUsername(java.lang.String username)

getPassword

public java.lang.String getPassword()

setPassword

public void setPassword(java.lang.String password)

getArchiveFilenamePattern

public java.lang.String getArchiveFilenamePattern()

setArchiveFilenamePattern

public void setArchiveFilenamePattern(java.lang.String archiveFilenamePattern)

getResolution

public HawkingCameraResolution getResolution()

setResolution

public void setResolution(HawkingCameraResolution resolution)

isMotionDetector

public boolean isMotionDetector()

setMotionDetector

public void setMotionDetector(boolean motionDetector)

getPreMotionBuffer

public long getPreMotionBuffer()

setPreMotionBuffer

public void setPreMotionBuffer(long preMotionBuffer)

getPostMotionBuffer

public long getPostMotionBuffer()

setPostMotionBuffer

public void setPostMotionBuffer(long postMotionBuffer)

getMotionTimeout

public long getMotionTimeout()

setMotionTimeout

public void setMotionTimeout(long motionTimeout)

getRotation

public double getRotation()
The angle by which the camera image will be rotated.

Returns:
angle in degrees

setRotation

public void setRotation(double rotation)
Set the angle to rotate the image by in degrees

Parameters:
rotation - in degrees


JHawkingCam hosted by SourceForge.net - John Dillenburg - john_sourceforge@dillenburg.org