|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ascape.model.AscapeObject
org.ascape.model.rule.Rule
org.ascape.model.rule.SetValues
public class SetValues
A rule for setting values for a population of agents. Typically this rule is iused for assigning a set of exogenous values to a collection of agents. For instance, this ruel might be used to set historical values each year for a group of agents in a simulation.
| Field Summary |
|---|
| Fields inherited from class org.ascape.model.AscapeObject |
|---|
ARBITRARY_SEED, name, PLATFORM_DEFAULT_COLOR, scape |
| Constructor Summary | |
|---|---|
SetValues()
Construct a new setter collection rule. |
|
| Method Summary | |
|---|---|
void |
addSetters(ValueSetter[] addDataPoints)
Adds setters to the collection rule. |
void |
execute(Agent agent)
Sets all values for the agent. |
ValueSetter[] |
getSetters()
Returns the setters used to collect setters from the scape. |
boolean |
isRandomExecution()
Returns false; it doesn't matter what order we set setters in. |
void |
setScape(Scape scape)
Sets the scape for this rule, adding any setters from the scapes prototype agent. |
| Methods inherited from class org.ascape.model.rule.Rule |
|---|
getScape, isCauseRemoval, isIterateAll |
| Methods inherited from class org.ascape.model.AscapeObject |
|---|
clone, diffDeep, diffDeep, diffDeepBFS, diffDeepDFS, diffDeepValidate, diffDeepVisit, equalsDeep, equalsDeep, equalsDeep, getComparisonStream, getName, getRandom, getRandomSeed, randomInRange, randomInRange, randomIs, randomToLimit, reseed, setComparisonStream, setName, setRandom, setRandomSeed, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SetValues()
| Method Detail |
|---|
public void setScape(Scape scape)
setScape in class Rulescape - the scapepublic ValueSetter[] getSetters()
public void addSetters(ValueSetter[] addDataPoints)
addDataPoints - the add data pointspublic void execute(Agent agent)
execute in class Ruleagent - the target agent.public boolean isRandomExecution()
isRandomExecution in class Rule
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||