示例#1
0
        public override bool CanConnectTo(MatDataPort port)
        {
            MatDataOutputPort trg = port as MatDataOutputPort;
            if (trg == null || SendFrom != null) return false;

            if (IsHardwarePort && trg.IsHardwarePort)
            {
                return AllowHardwareConnection & trg.AllowHardwareConnection;
            }

            return CanConnectToAnything || trg.MatDataType == MatDataType;
        }
示例#2
0
 public abstract bool CanConnectTo(MatDataPort port);