
TokenCounter |
org.resurgence.actor.TokenCounter |
This actor consumes and counts all tokens from the input port and
prints out their overall number. The relations connected to the input
port are scanned one after the other.
Author(s): Wibke Sudholt, University and ETH Zurich, November 2004
Version:$Id: TokenCounter.java,v 1.2 2005/11/01 20:39:14 ruland Exp $
token
The input port, which contains all tokens.
number
The output port, which contains the number of tokens.