//overviewdisplayer显示器的控制模式切换到波门模式,需要读取targetmannager当前的模式决定切换到自动波门还是半自动波门
        public void SwitchToWaveGateState()
        {
            ITargetDataProvider provider = TargetManagerFactory.CreateTargetDataProvider();
            TargetManagerMode   mode     = provider.GetMode();

            switch (mode)
            {
            case TargetManagerMode.Auto:
                SwitchToAutoWaveGateState();
                break;

            case TargetManagerMode.SemiAuto:
                SwitchToSemiAutoWaveGateSate();
                break;

            case TargetManagerMode.Manual:
                break;

            case TargetManagerMode.Intelligent:
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }
        }
Beispiel #2
0
 public void TestInitialize()
 {
     directory                    = new ActiveDirectory();
     cache                        = new AuthorizationInformationMemoryCache();
     logger                       = Global.LogFactory.CreateLogger <AuthorizationInformationBuilder>();
     powershell                   = Mock.Of <IPowerShellSecurityDescriptorGenerator>();
     targetDataProvider           = new TargetDataProvider(new TargetDataCache(), Global.LogFactory.CreateLogger <TargetDataProvider>());
     authorizationContextProvider = new AuthorizationContextProvider(Mock.Of <IOptions <AuthorizationOptions> >(), directory, Global.LogFactory.CreateLogger <AuthorizationContextProvider>());
 }
        protected TargetViewManager(TrackDisplayer displayer)
        {
            this.displayer = displayer;

            //获取航迹管理器
            targetProvider = TargetManagerFactory.CreateTargetDataProvider();
            targetProvider.RegisterObserver(this);

            InitializeTargetArray();    //初始化dots和tracks
        }
 public AuthorizationInformationBuilder(IOptionsSnapshot <AuthorizationOptions> options, IDirectory directory, ILogger <AuthorizationInformationBuilder> logger, IPowerShellSecurityDescriptorGenerator powershell, IAuthorizationInformationMemoryCache authzCache, ITargetDataProvider targetDataProvider, IAuthorizationContextProvider authorizationContextProvider)
 {
     this.directory                    = directory;
     this.logger                       = logger;
     this.options                      = options.Value;
     this.powershell                   = powershell;
     this.authzCache                   = authzCache;
     this.targetDataProvider           = targetDataProvider;
     this.authorizationContextProvider = authorizationContextProvider;
 }
Beispiel #5
0
        protected TrackDisplayer(Control holder)
        {
            holder.Controls.Clear();
            DisplayControl = holder;

            timer = new Timer {
                Interval = 30
            };
            timer.Tick += Timer_Tick;
            timer.Start();

            //TrackManager_TestCase_Random该类用于测试绘图程序
            dataProvider = TargetManagerFactory.CreateTargetDataProvider();
        }
Beispiel #6
0
        private static int GetSectorCount()
        {
            ITargetDataProvider provider = TargetManagerFactory.CreateTargetDataProvider();

            return(provider.GetSectorCount());
        }
Beispiel #7
0
 public ComputerTargetProvider(IDirectory directory, ITargetDataProvider targetDataProvider, ILogger <ComputerTargetProvider> logger)
 {
     this.logger             = logger;
     this.targetDataProvider = targetDataProvider;
     this.directory          = directory;
 }