copy method
CollectiveCellProperties<E, I>
copy({
- Cell? bind,
- ContainerType? container,
- CollectiveReceptor<
dynamic, Signal, Signal> ? receptor, - TestCollective<
dynamic, Collective> ? test, - MapObject? mapObject,
- Synapses<
Signal, Cell> ? synapses,
Creates a copy of these properties with optional modifications.
Parameters:
- bind: Optional different parent Cell
- container: Optional different ContainerType
- receptor: Optional different CollectiveReceptor
- test: Optional different TestCollective rules
- map: Optional different MapObject transformations
- synapses: Optional different Synapses configuration
Implementation
CollectiveCellProperties<E,I> copy({
Cell? bind,
ContainerType? container,
CollectiveReceptor? receptor,
TestCollective? test,
MapObject? mapObject,
Synapses? synapses
}) {
try {
synapses ??= record.synapses;
} catch(_) {
synapses = Synapses.enabled;
}
return CollectiveCellProperties<E,I>(
bind: bind ?? this.bind,
container: container ?? this.containerType,
receptor: receptor ?? this.receptor,
test: test ?? this.test,
mapObject: mapObject ?? this.mapObject,
synapses: synapses!
);
}