konark.detectors
Class TimerEventDetector
java.lang.Object
konark.detectors.EventDetector
konark.detectors.TimerEventDetector
- All Implemented Interfaces:
- java.lang.Runnable, java.io.Serializable
- public class TimerEventDetector
- extends EventDetector
- implements java.io.Serializable, java.lang.Runnable
- See Also:
- Serialized Form
Methods inherited from class konark.detectors.EventDetector |
getAlarmLevel, getAlertLevel, getBlueToothLogFileLocation, getLocalTriggeringEventClassNames, getRemoteTriggeringEventClassNames, getRFIDLogFileLocation, getSynchronizer, InitializeFields, populatePatterns, printRunningThreads, setAgentURN, setAlarmLevel, setAlertLevel, setBlueToothLogFileLocation, setDB, setEventIDGenerator, setEventTable, setLocalTriggeringEvents, setRemoteTriggeringEvents, setReportTable, setRFIDLogFileLocation, switchOffPrintRunningThreads |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimerEventDetector
public TimerEventDetector(ConfigObject configObj)
throws java.lang.Exception
TimerEventDetector
public TimerEventDetector(long timeoutPeriod,
ConfigObject configObj)
- Parameters:
timeoutPeriod
-
TimerEventDetector
public TimerEventDetector(java.lang.String timeoutPeriodString,
ConfigObject configObj)
- Parameters:
timeoutPeriodString
-
setTimeoutPeriod
public void setTimeoutPeriod(long time)
- Parameters:
time
-
getGeneratingEventClassName
public java.lang.String getGeneratingEventClassName()
- Specified by:
getGeneratingEventClassName
in class EventDetector
generateEvent
public java.util.Vector generateEvent(Event triggeredEvent)
- Specified by:
generateEvent
in class EventDetector
- Parameters:
triggeredEvent
-
getParamList
public static java.lang.String[] getParamList()
- Returns array of strings containing all the parameters that can be used
as input to modify this detector. Each entry in the array corresponds to
one parameter with structure " : ".
- Returns:
- parameterList, an array of Strings indicating parameters and their types
stopDetector
public void stopDetector()
- Overrides:
stopDetector
in class EventDetector
translateParameters
public static java.lang.Object[] translateParameters(java.lang.String[] inputarray)
throws java.lang.Exception
- This function takes an array of strings from GUI which contains input and converts them to array of objects
and returns.
- Parameters:
inputarray
- an array of strings that contains user inputs.
- Returns:
- objArray an array of objects converted from the array of strings got from user.
- Throws:
java.lang.Exception
modifyDetector
public void modifyDetector(java.lang.Object[] object)
throws java.lang.Exception
- Allows modification of detector configuration by passing a Long object of milliseconds for the new time out.
- Overrides:
modifyDetector
in class EventDetector
- Parameters:
object
- an array of Objects with a Long object as the only parameter
- Throws:
java.lang.Exception
getModifyDetectorObjectList
public static java.lang.String getModifyDetectorObjectList()
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
- Overrides:
run
in class EventDetector