override public function handleNotification(note:INotification):void { switch(note.getName()) { case CityModuleFacade.DATA_REQUEST_NOTE: //转换成PipeMessage向外部发送 junction.sendMessage(PipeAwareName.STDOUT,note.getBody() as IPipeMessage); break; //在这里包含了对 ACCEPT_INPUT_PIPE 和 ACCEPT_OUTPUT_PIPE 2个通知的处理,所以default的处理不能省略 default: super.handleNotification(note); } } default: super.handleNotification(note); 这2句不能省略