Difference between revisions of "Broadcast Action"

From AgentCubes
Jump to navigation Jump to search
imported>Corrina
imported>Corrina
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
{| cellpadding="10" cellspacing="0" border="0" width="100%"
 
{| cellpadding="10" cellspacing="0" border="0" width="100%"
 
|-
 
|-
| align="left" valign="top" width="80" | '''Definition:'''
+
| align="left" valign="top" width="80" | '''Definition:'''  
 
| align="left" valign="top" width="100%" | The '''Broadcast''' action: ''sends a message to all agents of the type specified.''
 
| align="left" valign="top" width="100%" | The '''Broadcast''' action: ''sends a message to all agents of the type specified.''
 
|-
 
|-
| align="left" valign="top" width="80" | '''Parameters:'''
+
| align="left" valign="top" width="80" | '''Parameters:'''  
| align="left" valign="top" width="100%" | [[Class name parameter|Targetagent]]:
+
| align="left" valign="top" width="100%" |  
 +
[[Class name parameter|Targetagent]]: ''specifies the type of agents to receive the message.''
 +
 
 +
[[Attribute name parameter|Messagename]]: ''specifies the message to be broadcast.''
 +
 
 
|-
 
|-
| align="left" valign="top" width="80" | '''Example:'''
+
| align="left" valign="top" width="80" | '''Example:'''  
| align="left" valign="top" width="100%" | .  
+
| align="left" valign="top" width="100%" | .
 
|}
 
|}
  
 
[[Category:AgentCubes_Actions]]
 
[[Category:AgentCubes_Actions]]

Latest revision as of 20:22, 20 April 2012

Broadcast.png

Definition: The Broadcast action: sends a message to all agents of the type specified.
Parameters:

Targetagent: specifies the type of agents to receive the message.

Messagename: specifies the message to be broadcast.

Example: .