Package repast.simphony.engine.watcher
Class WatchAnnotationReader
java.lang.Object
repast.simphony.engine.watcher.WatchAnnotationReader
- Version:
- $Revision: 1.2 $ $Date: 2006/01/10 16:59:23 $
- Author:
- Nick Collier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetContextListener
(ISchedule schedule) void
processClass
(Class<?> clazz) Process the specified class for watch annnotations.void
processClasses
(List<Class<?>> clazzes) void
processObjectAsWatcher
(Object object, ISchedule schedule, Context<Object> context) Examines the specified object to see if it should be a watcher and if so sets up accordingly.void
reset()
int
Gets the number of watches.
-
Constructor Details
-
WatchAnnotationReader
public WatchAnnotationReader()
-
-
Method Details
-
processClass
Process the specified class for watch annnotations.- Parameters:
clazz
- the class to process
-
processClasses
-
watchCount
public int watchCount()Gets the number of watches.- Returns:
- the number of watches
-
processObjectAsWatcher
Examines the specified object to see if it should be a watcher and if so sets up accordingly.- Parameters:
object
-schedule
-context
-
-
getContextListener
-
reset
public void reset()
-