Describes a targeted event in the simulation. This is useful for events which are triggered for a sub-population.
Initialise a TargetedEvent.
the size of the population.
Schedule this event to occur in the future.
the individuals to pass to the listener, this may be
either a vector of integers or a
the number of time steps to wait before triggering the event, can be a scalar in which case all targeted individuals are scheduled for for the same delay or a vector of values giving the delay for that individual.
Get the individuals who are scheduled as a
Stop a future event from triggering for a subset of individuals.
the individuals to clear, this may be either a vector of integers or
Extend the target size
the number of new elements to add to the index
Extend the target size and schedule for the new population
the delay for each new individual
Shrink the targeted event
the individuals to remove from the event
The objects of this class are cloneable with this method.
TargetedEvent$clone(deep = FALSE)
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.