matchState {ABM} | R Documentation |
Check if the state of an agent matches a given state
Description
Check if the state of an agent matches a given state
Usage
matchState(agent, rule)
Arguments
agent |
an external pointer returned by newAgent |
rule |
a list holding the state to match against |
Details
This function is equivalent to stateMatch(getState(agent), rule)
The state matches the rule if and only if each domain (names of the list) in rule has the same value as in state. The domains in domains of the state not listed in rule are not matched
Value
a logical value
[Package ABM version 0.4.1 Index]