ActionGroups Swarm User Guide Prev Chapter 9. An ActionGroup is a set of actions that are supposed to happen in sequence. The buildActions method is often designed to first create an ActionGroup and then to schedule that is be repeated every now and then. Consider the Swarm SugarScape again.
Schedule then executes the actions.
If there is only one ActionGroup in a schedule, then one might as well not create a group and just add the actions to a schedule one at a time. The use of ActionGroup s is most valuable when several sets of separate actions are considered and they need to be scheduled to start at different times or repeat at different intervals.