DDFSingleTokenCommutator
ptolemy.domains.ddf.lib.DDFSingleTokenCommutator

The DDFSingleTokenCommutator has a multiport input port and an output port. The types of the ports are undeclared and will be resolved by the type resolution mechanism, with the constraint that the output type must be greater than or equal to the input type. On each call to the fire() method, the actor reads one token from the current input channel, and writes the token to the output port. Then in the postfire() method, it will update token consumption rate of the input port so that it will read token from the next channel in the next iteration.

Author(s): Gang Zhou
Version:$Id: DDFSingleTokenCommutator.doc.html,v 1.1 2006/02/22 18:40:26 mangal Exp $
Pt.Proposed Rating:Yellow (zgang)
Pt.Accepted Rating:Yellow (cxh)




input_tokenConsumptionRate
This parameter provides token consumption rate for each input channel. The type is array of ints.