![]() |
||||||||
|
||||||||
|
![]() |
||||||
Rather than just responding to to BEGIN messages, counting actors respond to changes in their value; a number between 0 and 9999. They constantly compare their value with a set of target values, which can be either fixed values or other counting actors. | ![]() |
|||||
![]() |
![]() |
|||||
When the value matches (i.e it is greater than, equal to or less than the appropriate target) counting actors send messages on, much like other actors. | ![]() |
|||||
![]() |
![]() |
|||||
Another way that a counting actor can be used is simply as a value (a variable) in messages sent by other actors. The value could be- sent to other counting actors |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |