Package repast.simphony.engine.watcher
Class SharedWatchParameters
java.lang.Object
repast.simphony.engine.watcher.SharedWatchParameters
Contains the invariant part of a WatchParamter that can be shared among
WatchParameters for different objects.
- 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
-
SharedWatchParameters
-
-
Method Details
-
getWatcheeClass
-
setArgMatcher
-
getArgMatcher
-
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
-
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
-