com.brayan.SECS.DAL.sensors
Class MsOfficeFileSensor

java.lang.Object
  extended by com.brayan.SECS.DAL.sensors.MsOfficeFileSensor
All Implemented Interfaces:
java.util.Observer

public class MsOfficeFileSensor
extends java.lang.Object
implements java.util.Observer


Field Summary
private static MsOfficeFileDetector mofd
           
private static MsOfficeFileSensor ref
          class variable
 
Constructor Summary
private MsOfficeFileSensor()
          overrides constructor
 
Method Summary
 java.lang.Object clone()
          this overrides the clone() method - because it's of no use to us
private  MsOfficeFileDetector getDetector()
          return the instantiated File Detector
static MsOfficeFileSensor getSingletonObject()
           
private  void init()
          init all components; start file detector
 void stop()
          stop this instance of file sensor
 void stopFileDetector()
          stops the file Detector
 void update(java.util.Observable o, java.lang.Object arg)
          Method to react on the oberservable's (filedetector) message.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ref

private static MsOfficeFileSensor ref
class variable


mofd

private static MsOfficeFileDetector mofd
Constructor Detail

MsOfficeFileSensor

private MsOfficeFileSensor()
overrides constructor

Method Detail

getSingletonObject

public static MsOfficeFileSensor getSingletonObject()
Returns:
single instantiated file sensor

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
this overrides the clone() method - because it's of no use to us

Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

init

private void init()
init all components; start file detector


stop

public void stop()
stop this instance of file sensor


update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Method to react on the oberservable's (filedetector) message.

Specified by:
update in interface java.util.Observer
Parameters:
o -
arg -

getDetector

private MsOfficeFileDetector getDetector()
return the instantiated File Detector

Returns:
MsOfficeFileDetector

stopFileDetector

public void stopFileDetector()
stops the file Detector