Multiple instances of an attribute (Capsule/StateMachine) [message #1801766] |
Fri, 25 January 2019 16:54  |
Eclipse User |
|
|
|
Hi,
I am trying to create a model (say CassettePlayer) with multiple channels (say more than 2). I created Player capsule, Channel capsule, Top capsule to control the Player and Channel capsules through MusicControlProtocol.
In order to add another Channel, I can drag & drop Channel capsule, rename it as Channel2, add another protocol in Top capsule to talk to Channel 2.
Is there a way to instantiate multiple instances of channel in the code instead of adding it in Top Capsule? If multiplicity can be used here, I am not sure how to do it? Could you please clarify with an example model if possible?
Attached model for reference
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03874 seconds