Countdown 2
no.ntnu.item.arctis.library

Import via SVN
Drop this link into the Arctis View

Description

Counts the number of arriving tokens. Number of iterations set as instance parameter.

This block is used to count incoming tokens and signal once a certain number has been reached. This variant sets the number as a fixed instance parameter. If the number of tokens to count is determined at run-time, use another variant.

Origin

Author:Frank Alexander Kraemer
Provider:NTNU - Department of Telematics
Repository:http://svn.item.ntnu.no/arctis-lib (user= guest, login= guest)

Dependencies

Imported Building Blocks:none
Imported Libraries:none
Required Repositories:none


Block Instance Parameters
initialValue:  int

The initial value from which the block starts counting down. Default value is 10.



Parameter Nodes
init

Initializes the counter.

count

Accepts tokens for counting.

continue

Notifies about the arrival of a token via 'count' while counting is going on.

end

Notifies about the arrival of the last token via 'count'.

stop

stopped


External Behavior