// Update enabling status for each connected actor.
Iterator ports = ((Entity) actor).portList().iterator();
while (ports.hasNext()) {
ComponentPort port = (ComponentPort) ports.next();
Iterator deepConnectedPorts = port.deepConnectedPortList()
.iterator();
while (deepConnectedPorts.hasNext()) {
Port deepConnectedPort = (Port) deepConnectedPorts.next();
Actor connectedActor = (Actor) deepConnectedPort.getContainer();