public ScadaModelImporter(IReliableStateManager stateManager, ModelResourcesDesc modelResourceDesc, EnumDescs enumDescs)
        {
            this.baseLogString = $"{this.GetType()} [{this.GetHashCode()}] =>{Environment.NewLine}";

            this.isGidToPointItemMapInitialized = false;
            this.isAddressToGidMapInitialized   = false;
            this.isInfoCacheInitialized         = false;

            this.stateManager = stateManager;
            this.stateManager.StateManagerChanged += this.OnStateManagerChangedHandler;

            this.modelResourceDesc = modelResourceDesc;
            this.enumDescs         = enumDescs;
            this.pointItemHelper   = new ScadaModelPointItemHelper();
        }
Example #2
0
        public ScadaTransactionActor(IReliableStateManager stateManager, ModelResourcesDesc modelResourceDesc, EnumDescs enumDescs)
        {
            this.baseLogString = $"{this.GetType()} [{this.GetHashCode()}] =>{Environment.NewLine}";

            this.isCurrentGidToPointItemMapInitialized  = false;
            this.isIncomingGidToPointItemMapInitialized = false;
            this.isCurrentAddressToGidMapInitialized    = false;
            this.isIncomingAddressToGidMapInitialized   = false;
            this.isInfoCacheInitialized               = false;
            this.isModelChangesInitialized            = false;
            this.isCommandDescriptionCacheInitialized = false;

            this.stateManager = stateManager;
            this.stateManager.StateManagerChanged += this.OnStateManagerChangedHandler;

            this.modelResourceDesc        = modelResourceDesc;
            this.enumDescs                = enumDescs;
            this.pointItemHelper          = new ScadaModelPointItemHelper();
            this.reliableDictionaryHelper = new ReliableDictionaryHelper();
        }