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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates an id based on the watchee class and field.booleanGets whether or not to shuffle the watchers before triggering them.doubledoubleClass<?>intGets the amount of watchers to trigger.voidsetArgMatcher(ArgMatcher matcher) voidsetQueryCondition(IBooleanExpression condition) voidsetShuffleWatchers(boolean shuffleWatchers) Sets whether or not to shuffle the watchers before triggering them.voidsetTriggerSchedule(WatcherTriggerSchedule schedule, double scheduleDelta, double schedulePriority) voidsetWatcheeCondition(String watcheeCondition) voidsetWatcherCount(int pick) Gets the amount of watchers to trigger.voidsetWatchID(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
-