* reflected to the mirror port.
*/
private void _checkWhetherMirrorIsInput() {
// Need to check whether there is a containing ModalModel,
// and whether its mirror port is also an input.
Nameable container = getContainer();
if (container != null) {
Nameable modal = container.getContainer();
if (modal instanceof ModalModel) {
Port port = ((ModalModel) modal).getPort(getName());
if (port instanceof IOPort) {