Package clickDetector.offlineFuncs
Class DatabaseChecks
java.lang.Object
clickDetector.offlineFuncs.DatabaseChecks
-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseChecks
(ClickControl clickControl, DatabaseCheckObserver databaseCheckObserver) -
Method Summary
Modifier and TypeMethodDescriptionboolean
checkEvent
(int eventId, boolean repair) Check a single event.boolean
runChecks
(boolean repair)
-
Constructor Details
-
DatabaseChecks
-
-
Method Details
-
runChecks
public boolean runChecks(boolean repair) -
checkEvent
public boolean checkEvent(int eventId, boolean repair) Check a single event. Basically, can just query all the clicks for this event, check the start and end times and total number of clicks are all correct.- Parameters:
repair
- repair the event if there is an error.anEvent
- event- Returns:
- true if event OK / repaired.
-