Navigation Bar AgentSheets Education R&D Support About Us Manuals Tutorial Movies FAQ Books Classes

Broadcast Action

Definition: The Broadcast action broadcasts a message to all agents of the class indicated in the action's Class parameter.

The message to be broadcast is indicated in the action's text field and is a method call to all agents of the indicated Class.

The Broadcast action is used in conjunction with On triggers; the receivers can react to the message via the On trigger. These triggers give names to groups of rules (methods) that can be called using the Broadcast action.

Parameters: class, method name
Example: The Scanner agent in the How Does TV Work? simulation broadcasts to the TV Beam and Video-Signal agents the message to turn bright or dark, depending on what it scans.

reference manual | ©2010 AgentSheets, Inc. | contact us