Ptolemy II includes a number of higher-order components. These are actors that operate on the structure of the model rather than on input data.
The MultiInstanceComposite actor may be used to instantiate identical processing blocks within a model. See the javadoc MultiInstanceComposite documentation for details.
Building Graphical Models describes how to use higher-order components.