Package repast.simphony.engine.watcher
Class WatchParameters
java.lang.Object
repast.simphony.engine.watcher.WatchParameters
Parameter object for setting watches
- Version:
- $Revision: 1.1 $ $Date: 2005/12/21 22:25:34 $
- Author:
- Nick Collier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates an id based on the watchee class and field.boolean
Gets whether or not to shuffle the watchers before triggering them.double
double
Class<?>
int
Gets the amount of watchers to trigger.void
setArgMatcher
(ArgMatcher matcher) void
setQueryCondition
(IBooleanExpression condition) void
setShuffleWatchers
(boolean shuffleWatchers) Sets whether or not to shuffle the watchers before triggering them.void
setTriggerSchedule
(WatcherTriggerSchedule schedule, double scheduleDelta, double schedulePriority) void
setWatcheeCondition
(String watcheeCondition) void
setWatcherCount
(int pick) Gets the amount of watchers to trigger.void
setWatchID
(String watchID)
-
Constructor Details
-
Method Details
-
getWatcheeClass
-
setTriggerSchedule
public void setTriggerSchedule(WatcherTriggerSchedule schedule, double scheduleDelta, double schedulePriority) -
getTriggerSchedule
-
getScheduleDelta
public double getScheduleDelta() -
getSchedulePriority
public double getSchedulePriority() -
getWatchID
-
setWatchID
-
createWatcheeID
Creates an id based on the watchee class and field.- Returns:
- an id based on the watchee class and field.
-
getWatcheeCondition
-
setWatcheeCondition
-
getClassName
-
getFieldName
-
setArgMatcher
-
getArgMatcher
-
getWatcher
-
getWatcherMethodName
-
getAction
-
setQueryCondition
-
getQueryCondition
-
getWatcherCount
public int getWatcherCount()Gets the amount of watchers to trigger.- Returns:
- the amount of watchers to trigger.
-
setWatcherCount
public void setWatcherCount(int pick) Gets the amount of watchers to trigger.- Parameters:
pick
- the amount of watchers to trigger
-
doShuffleWatchers
public boolean doShuffleWatchers()Gets whether or not to shuffle the watchers before triggering them.- Returns:
- whether or not to shuffle the watchers before triggering them.
-
setShuffleWatchers
public void setShuffleWatchers(boolean shuffleWatchers) Sets whether or not to shuffle the watchers before triggering them.- Parameters:
shuffleWatchers
- true to shuffle, false don't shuffle
-