Finish the model structure

Finish the model structure

From the outline view right click to Blinky and select Edit Structure. Drag and Drop an Interface Port to the boarder of the Blinky actor. Note that an interface port is not possible inside the actor. Name the port ControlPort and select BlinkyControlProtocol from the drop down list. Uncheck Conjugated and Is Relay Port. Click ok. The resulting structure should look like this:

Repeat the above steps for the BlinkyController. Make the port Conjugated

Keep in mind that the protocol defines start and stop as incoming messages. Blinky receives this messages and therefore Blinky's ControlPort must be a regular port and BlinkyController's ControlPort must be a conjugated port.

From the outline view right click BlinkyTop and select Edit Structure.

Drag and Drop an ActorRef inside the BlinkyTop actor. Name it blinky. From the actor class drop down list select Blinky. Do the same for controller. Connect the ports via the binding tool. The resulting structure should look like this: