Package repast.simphony.engine.watcher
Class WatchAnnotationReader
- java.lang.Object
-
- repast.simphony.engine.watcher.WatchAnnotationReader
-
public class WatchAnnotationReader extends Object
- Version:
- $Revision: 1.2 $ $Date: 2006/01/10 16:59:23 $
- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description WatchAnnotationReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContextListener
getContextListener(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
watchCount()
Gets the number of watches.
-
-
-
Method Detail
-
processClass
public void processClass(Class<?> clazz)
Process the specified class for watch annnotations.- Parameters:
clazz
- the class to process
-
watchCount
public int watchCount()
Gets the number of watches.- Returns:
- the number of watches
-
processObjectAsWatcher
public 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.- Parameters:
object
-schedule
-context
-
-
getContextListener
public ContextListener getContextListener(ISchedule schedule)
-
reset
public void reset()
-
-