码迷,mamicode.com
首页 >  
搜索关键字:reactor pattern    ( 8184个结果
java实现fp-growth算法
FP Growth算法利用了巧妙的数据结构,大大降低了Aproir挖掘算法的代价,他不需要不断得生成候选项目队列和不断得扫描整个数据库进行比对。为了达到这样的效果,它采用了一种简洁的数据结构,叫做frequent-pattern tree(频繁模式树)。...
分类:编程语言   时间:2014-06-18 12:22:01    阅读次数:495
设计模式 - 命令模式(command pattern) 宏命令(macro command) 详解
命令模式(command pattern) 宏命令(macro command) 详解本文地址: http://blog.csdn.net/caroline_wendy参考: 命名模式(撤销): http://blog.csdn.net/caroline_wendy/article/details/31419101命令模式可以执行宏命令(macro command), 即多个命令的组合操作.具体方...
分类:其他好文   时间:2014-06-17 23:14:44    阅读次数:324
设计模式 - 命令模式(command pattern) 详解
命令模式(command pattern) 详解本文地址: http://blog.csdn.net/caroline_wendy命令模式: 将请求封装成对象, 以便使用不同的请求\队列\日志来参数化其他对象. 命令模式也支持可撤销操作.命令模式:调用者(Invoker);命令(Command): 可执行方法(execute), 具体命令(Concrete Command);接受者(Receive...
分类:其他好文   时间:2014-06-17 22:53:01    阅读次数:359
设计模式 - 命令模式(command pattern) 多命令 详解
命令模式(command pattern) 多命令 详解本文地址: http://blog.csdn.net/caroline_wendy参考命令模式: http://blog.csdn.net/caroline_wendy/article/details/313799771. 多命令, 把未使用的命令, 初始化为空对象(NoCommand), 根据参数(slot), 选择输出命令./** *...
分类:其他好文   时间:2014-06-17 22:42:59    阅读次数:253
design pattern Builder 建造者设计模式
其实设计模式可以学的很有意思的,不需要非得如此硬枯燥地去啃FOG的大部头,当然这些骨头啃啃也健康。 本文利用建造者模式设计一个有趣的场景,一个利用这个模式去学功夫的过程,呵呵。 首先设计一个基类,学功夫先要有基础嘛: class 功夫 { public: virtual void 看招() = 0; }; 有了基础之后,我们就可以学习高级功法了,这里学习降龙十八掌,O(∩_∩)O...
分类:其他好文   时间:2014-06-17 22:26:12    阅读次数:352
设计模式 - 命令模式(command pattern) 撤销(undo) 详解
命令模式(command pattern) 撤销(undo) 详解本文地址: http://blog.csdn.net/caroline_wendy参考命令模式: http://blog.csdn.net/caroline_wendy/article/details/31379977命令模式可以用于执行撤销(undo)操作.具体方法:1. 对象类中需要保存状态, 如level.package co...
分类:其他好文   时间:2014-06-17 22:19:07    阅读次数:229
Java设计模式之适配器模式(Adapter Pattern)
Adapter Pattern的作用是在不改变功能的前提下转换接口。Adapter分为两类,一类是Object Adapter, 另一类是Class Adapter。由于Class Adapter的实现需要用到多承继,而Java不支持多承继,所以这里只关注Object Adapter。 在JDK1.5之前是没有 java.util.Iterator 接口的,java.util.Enume...
分类:编程语言   时间:2014-06-17 19:16:20    阅读次数:251
解决 configure.ac:17: error: possibly undefined macro: AC_PROG_LIBTOOL
安装时出现configure.ac:17: error: possibly undefined macro: AC_PROG_LIBTOOL                      If this token and others are legitimate, please use m4_pattern_allow.                      See the Autocon...
分类:其他好文   时间:2014-06-17 16:36:01    阅读次数:1500
Linux Shell常用技巧(三)
八. 流编辑器sed: sed一次处理一行文件并把输出送往屏幕。sed把当前处理的行存储在临时缓冲区中,称为模式空间(pattern space)。一旦sed完成对模式空间中的行的处理,模式空间中的行就被送往屏幕。行被处理完成之后,就被移出模式空间,程序接着读入下一行,处理,显示,移出......文...
分类:系统相关   时间:2014-06-17 14:53:13    阅读次数:316
Linux Shell常用技巧(二)
七. grep家族: 1. grep退出状态: 0: 表示成功; 1: 表示在所提供的文件无法找到匹配的pattern; 2: 表示参数中提供的文件不存在。 见如下示例: /> grep 'root' /etc/passwd root:x:0:0:root:/root:/bin/bash opera...
分类:系统相关   时间:2014-06-17 14:47:16    阅读次数:312
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!