Пример #1
0
        public ConfigIVIBridgeConfig(ConfigIVIBridgeConfig other)
        {
            PartID = other.PartID;

            MinSyncInterval        = other.MinSyncInterval.Clip(TimeSpan.Zero, TimeSpan.FromSeconds(0.2));
            MinLookAtLaterInterval = other.MinLookAtLaterInterval;

            IssueLogMesgType             = other.IssueLogMesgType;
            ValueUpdateTraceLogMesgType  = other.ValueUpdateTraceLogMesgType;
            UseEnsureExists              = other.UseEnsureExists;
            DefaultConfigKeyProviderName = other.DefaultConfigKeyProviderName;

            PartBaseIVI  = other.PartBaseIVI ?? other.IVI ?? Modular.Interconnect.Values.Values.Instance;
            IVI          = other.IVI ?? Modular.Interconnect.Values.Values.Instance;
            Config       = other.Config ?? Modular.Config.Config.Instance;
            ReferenceSet = other.ReferenceSet;

            if (other.IVAPropagateNameMatchRuleSet != null)
            {
                IVAPropagateNameMatchRuleSet = new MatchRuleSet(other.IVAPropagateNameMatchRuleSet);
            }
            IVAMapNameFromTo = other.IVAMapNameFromTo;

            if (other.CKAPropagateKeyMatchRuleSet != null)
            {
                CKAPropagateKeyMatchRuleSet = new MatchRuleSet(other.CKAPropagateKeyMatchRuleSet);
            }
            CKAPropagateFilterPredicate = other.CKAPropagateFilterPredicate;
            CKAMapNameFromTo            = other.CKAMapNameFromTo;

            ActionLoggingConfig = other.ActionLoggingConfig;
        }
Пример #2
0
        public IVIBridgeConfig(IVIBridgeConfig other)
        {
            PartID = other.PartID;

            MinSyncInterval = other.MinSyncInterval.Clip(TimeSpan.Zero, TimeSpan.FromSeconds(0.2));

            IssueLogMesgType            = other.IssueLogMesgType;
            ValueUpdateTraceLogMesgType = other.ValueUpdateTraceLogMesgType;

            PartBaseIVI = other.PartBaseIVI ?? Modular.Interconnect.Values.Values.Instance;
            IVI1        = other.IVI1 ?? Modular.Interconnect.Values.Values.Instance;
            IVI2        = other.IVI2 ?? Modular.Interconnect.Values.Values.Instance;

            if (other.IVA1PropagateNameMatchRuleSet != null)
            {
                IVA1PropagateNameMatchRuleSet = new MatchRuleSet(other.IVA1PropagateNameMatchRuleSet);
            }
            IVA1MapNameFromTo = other.IVA1MapNameFromTo;

            if (other.IVA2PropagateNameMatchRuleSet != null)
            {
                IVA2PropagateNameMatchRuleSet = new MatchRuleSet(other.IVA2PropagateNameMatchRuleSet);
            }
            IVA2MapNameFromTo = other.IVA2MapNameFromTo;
        }