This a dynamic Fork function. On demand a new porthole is added to or removed from a multiporthole during runtime. All particles to its input are passed to all outputs.
Derived from: DEDynForkBase
Location: $PTOLEMY/src/domains/de/contrib/stars
Version: 1.1 "05/13/98"
Author: Jens Voigt
Acknowledgements: I use exacly the same go()-method as S. Ha does in DEFork.pl.
in | anytype | input for all events |
out (multiple) | ANYTYPE | will get one PortHole for each instance |
This method is called from DEDynMapBase::createDynBlock whenever a new block is to put into the system configuration. It just creates a new porthole in the out-multiporthole. A pointer to the porthole is returned. The number of the porthole is not needed here, we just need the same interface as in the DEDynForkXXX-stars.
This method is called from DEDynMapBase::deleteDynBlock whenever a block is to be taken out of the system configuration. From DEDynMapBase::deleteDynBlock we get a pointer to one of the portholes in ourout-multiporthole. We delete it from the block's porthole list as well as from the multiporthole's list and delete the porthole itself.
See: source code,
DynFork users
copyright (c) 1998 Dresden University of Technology, WiNeS-Project. All rights reserved.