コード例 #1
0
ファイル: DictWatcher.cs プロジェクト: yjpark/dap.core.csharp
 public BlockDictWatcher(IBlockOwner owner,
                         Action <T> addedBlock,
                         Action <T> removedBlock) : base(owner)
 {
     _AddedBlock   = addedBlock;
     _RemovedBlock = removedBlock;
 }
コード例 #2
0
        public BlockBusSub AddSub(string msg, IBlockOwner owner, Action <Bus, string> block)
        {
            BlockBusSub result = new BlockBusSub(owner, block);

            AddSub(msg, result);
            return(result);
        }
コード例 #3
0
ファイル: WeakBlock.cs プロジェクト: yjpark/dap.core.csharp
 protected WeakBlock(IBlockOwner owner)
 {
     if (owner != null)
     {
         _OwnerReference = new WeakReference(owner);
     }
 }
コード例 #4
0
 public BlockTableWatcher(IBlockOwner owner,
                          Action <T> addedBlock,
                          Action <T> removedBlock,
                          Action <T> indexChangedBlock) : base(owner)
 {
     _AddedBlock        = addedBlock;
     _RemovedBlock      = removedBlock;
     _IndexChangedBlock = indexChangedBlock;
 }
コード例 #5
0
        public BlockRequestChecker AddRequestChecker(IBlockOwner owner, Func <Handler, Data, bool> block)
        {
            BlockRequestChecker result = new BlockRequestChecker(owner, block);

            if (AddRequestChecker(result))
            {
                return(result);
            }
            return(null);
        }
コード例 #6
0
        public BlockResponseWatcher AddResponseWatcher(IBlockOwner owner, Action <Handler, Data, Data> block)
        {
            BlockResponseWatcher result = new BlockResponseWatcher(owner, block);

            if (AddResponseWatcher(result))
            {
                return(result);
            }
            return(null);
        }
コード例 #7
0
ファイル: Channels.cs プロジェクト: yjpark/dap.core.csharp
        public BlockEventChecker AddEventChecker(string channelKey, IBlockOwner owner, Func <Channel, Data, bool> block)
        {
            Channel channel = Get(channelKey);

            if (channel != null)
            {
                return(channel.AddEventChecker(owner, block));
            }
            return(null);
        }
コード例 #8
0
ファイル: Channels.cs プロジェクト: yjpark/dap.core.csharp
        public BlockEventWatcher AddEventWatcher(string channelKey, IBlockOwner owner, Action <Channel, Data> block)
        {
            Channel channel = Get(channelKey);

            if (channel != null)
            {
                return(channel.AddEventWatcher(owner, block));
            }
            return(null);
        }
コード例 #9
0
ファイル: Handlers.cs プロジェクト: yjpark/dap.core.csharp
        public BlockResponseWatcher AddResponseWatcher(string handlerKey, IBlockOwner owner, Action <Handler, Data, Data> block)
        {
            Handler handler = Get(handlerKey);

            if (handler != null)
            {
                return(handler.AddResponseWatcher(owner, block));
            }
            return(null);
        }
コード例 #10
0
ファイル: Handlers.cs プロジェクト: yjpark/dap.core.csharp
        public BlockRequestChecker AddRequestChecker(string handlerKey, IBlockOwner owner, Func <Handler, Data, bool> block)
        {
            Handler handler = Get(handlerKey);

            if (handler != null)
            {
                return(handler.AddRequestChecker(owner, block));
            }
            return(null);
        }
コード例 #11
0
        public BlockEventWatcher AddEventWatcher(IBlockOwner owner, Action <Channel, Data> block)
        {
            BlockEventWatcher result = new BlockEventWatcher(owner, block);

            if (AddEventWatcher(result))
            {
                return(result);
            }
            return(null);
        }
コード例 #12
0
        public BlockEventChecker AddEventChecker(IBlockOwner owner, Func <Channel, Data, bool> block)
        {
            BlockEventChecker result = new BlockEventChecker(owner, block);

            if (AddEventChecker(result))
            {
                return(result);
            }
            return(null);
        }
コード例 #13
0
        }                                                                                 //__SILP__

        //__SILP__
        public BlockVarWatcher AddVarWatcher(IBlockOwner owner,                           //__SILP__
                                             Action <IVar> _watcher)                      //__SILP__
        {
            BlockVarWatcher watcher = new BlockVarWatcher(owner, _watcher);               //__SILP__

            if (AddVarWatcher(watcher))                                                   //__SILP__
            {
                return(watcher);                                                          //__SILP__
            }                                                                             //__SILP__
            return(null);                                                                 //__SILP__
        }                                                                                 //__SILP__
コード例 #14
0
 public BlockBusSub(IBlockOwner owner, Action <Bus, string> block) : base(owner)
 {
     _Block = block;
 }
コード例 #15
0
 public BlockValueChecker(IBlockOwner owner, Func <IVar <T>, T, bool> checker) : base(owner)
 {
     Checker = checker;
 }
コード例 #16
0
 public BlockValueWatcher(IBlockOwner owner, Action <IVar <T>, T> watcher) : base(owner)
 {
     Watcher = watcher;
 }
コード例 #17
0
ファイル: DictWatcher.cs プロジェクト: yjpark/dap.core.csharp
 public BlockDictElementRemovedWatcher(IBlockOwner owner, Action <T> removedBlock) :
     base(owner, null, removedBlock)
 {
 }
コード例 #18
0
ファイル: DictWatcher.cs プロジェクト: yjpark/dap.core.csharp
 public BlockDictElementAddedWatcher(IBlockOwner owner, Action <T> addedBlock) :
     base(owner, addedBlock, null)
 {
 }
コード例 #19
0
 public BlockTableElementIndexChangedWatcher(IBlockOwner owner, Action <T> indexChangedBlock) :
     base(owner, null, null, indexChangedBlock)
 {
 }
コード例 #20
0
 public BlockResponseWatcher(IBlockOwner owner, Action <Handler, Data, Data> block) : base(owner)
 {
     _Block = block;
 }
コード例 #21
0
ファイル: IChannel.cs プロジェクト: yjpark/dap.core.csharp
 public BlockEventChecker(IBlockOwner owner, Func <Channel, Data, bool> block) : base(owner)
 {
     _Block = block;
 }
コード例 #22
0
ファイル: IChannel.cs プロジェクト: yjpark/dap.core.csharp
 public BlockEventWatcher(IBlockOwner owner, Action <Channel, Data> block) : base(owner)
 {
     _Block = block;
 }
コード例 #23
0
ファイル: VarWatcher.cs プロジェクト: yjpark/dap.core.csharp
 public BlockVarWatcher(IBlockOwner owner, Action <IVar> watcher) : base(owner)
 {
     _Watcher = watcher;
 }
コード例 #24
0
 public BlockRequestChecker(IBlockOwner owner, Func <Handler, Data, bool> block) : base(owner)
 {
     _Block = block;
 }