konark.detectors
Class DummyEventDetector

java.lang.Object
  extended bykonark.detectors.EventDetector
      extended bykonark.detectors.DummyEventDetector
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable

public class DummyEventDetector
extends EventDetector

As the name implies, this is a dummy detector. It may be triggered by TimerEvents, but it will take no action. It is merely a template.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class konark.detectors.EventDetector
agentURN, blueToothLogFileName, cred, dbModule, eventIDGenerator, eventTable, host, localTriggeringEvents, remoteTriggeringEvents, reportTable
 
Constructor Summary
DummyEventDetector()
          The default constructor.
 
Method Summary
 java.util.Vector generateEvent(Event triggeredEvent)
          This method will be triggered whenever a TimerEvent is processed.
 java.lang.String getGeneratingEventClassName()
          Returns the fully-qualified classname of the event that this detector may generate.
 
Methods inherited from class konark.detectors.EventDetector
getAlarmLevel, getAlertLevel, getBlueToothLogFileLocation, getLocalTriggeringEventClassNames, getRemoteTriggeringEventClassNames, getRFIDLogFileLocation, getSynchronizer, InitializeFields, modifyDetector, populatePatterns, printRunningThreads, run, setAgentURN, setAlarmLevel, setAlertLevel, setBlueToothLogFileLocation, setDB, setEventIDGenerator, setEventTable, setLocalTriggeringEvents, setRemoteTriggeringEvents, setReportTable, setRFIDLogFileLocation, stopDetector, switchOffPrintRunningThreads
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyEventDetector

public DummyEventDetector()
The default constructor. Sets its triggering events to network.events.TimerEvent.

Method Detail

getGeneratingEventClassName

public java.lang.String getGeneratingEventClassName()
Returns the fully-qualified classname of the event that this detector may generate.

Specified by:
getGeneratingEventClassName in class EventDetector
Returns:
the fully-qualified classname of the event that this detector may generate.

generateEvent

public java.util.Vector generateEvent(Event triggeredEvent)
This method will be triggered whenever a TimerEvent is processed. It is a noop, since no action will be taken.

Specified by:
generateEvent in class EventDetector
Parameters:
triggeredEvent - the triggering event (a TimerEvent).
Returns:
a null vector.