码迷,mamicode.com
首页 >  
搜索关键字:pattern recognition    ( 8071个结果
Comparable与Comparator的区别
一。比较Comparable & Comparator 都是用来实现集合中元素的比较、排序的,只是 Comparable 是在内部实现的排序,Comparator 是在外部实现的排序。用 Comparator 是策略模式(strategy design pattern),不改变对象自身,而用一个策略...
分类:其他好文   时间:2014-07-16 22:55:37    阅读次数:181
使用SVG Path绘图
最近一个项目,需要做个Web版本的设计器,用来进行工厂流水线布局的设计。项目中采用了SVG.JS来做,但是以前流水线是采用单纯的画线的方式实现。客户提出希望用不同的底纹表示不同的流水线,经过一番调查,最终决定采用Path,用pattern的方式来填充底纹。但是文档中对pattern的使用描述的比较含...
分类:其他好文   时间:2014-07-16 22:52:51    阅读次数:1806
代理模式
什么是代理模式?即Proxy Pattern,23种java常用设计模式之一。代理模式的定义:对其他对象提供一种代理以控制对这个对象的访问。在某些情况下,一个客户不想或者不能直接引用另一个对象,而代理对象可以在客户端和目标对象之间起到中介的作用。为什么要用代理?打个比喻,明星为什么需要经纪人来代理他...
分类:其他好文   时间:2014-07-16 20:38:55    阅读次数:228
VFP正则表达式判断是否是手机号码/电子邮件
正则表达式,可以理解为字符匹配或搜索技术 ,重要的是Pattern属性的写法.*--判断是否是手机号码Function isMobiPhoneLparameters cStroRegExp=Newobject("QYRegexp","Prg\qyregexp.prg")oRegExp.Pattern...
分类:移动开发   时间:2014-07-16 20:07:30    阅读次数:249
HF-DP1: strategy pattern
This is the 1st pattern I study. In here, I will mark down my doubts, java study, DESIGN PRINCIPLES, DESIGN PATTERN. There are 3 design principles in ...
分类:其他好文   时间:2014-07-13 10:51:33    阅读次数:229
设计模式 - 命令模式(command pattern) 具体解释
命令模式(command pattern) 详细解释本文地址:http://blog.csdn.net/caroline_wendy命令模式(command pattern) : 将请求封装成对象, 以便使用不同的请求\队列\日志来參数化其它对象.命令模式也能够支持撤销操作.简单的命令模式的实现:1...
分类:其他好文   时间:2014-07-13 08:21:02    阅读次数:289
Design Pattern Memo 备忘录设计模式
本设计模式就是简单地记录当前状态,然后利用记录的数据恢复。 比如首先我们有一个类,类需要记录当前状态进行相关的工作的: class Memo; class Human { public: string state; Memo *makeMemo(); void restroDataFromMemo(Memo *m); void show() { cout<<"State: "<...
分类:其他好文   时间:2014-07-10 21:58:16    阅读次数:240
LeetCode----Wildcard matching
Implement wildcard pattern matching with support for '?' and '*'. '?' Matches any single character. '*' Matches any sequence of characters (including the empty sequence). The matching should cover t...
分类:其他好文   时间:2014-07-10 21:21:42    阅读次数:255
java python oracle判断字符串是否为数字的函数
java public boolean isNumeric(String str){ Pattern pattern = Pattern.compile("^-?[0-9]+\\.?[0-9]+"); Matcher isNum = pattern.matcher(str); if( !isNum.matches() ){ return fals...
分类:数据库   时间:2014-07-10 20:33:27    阅读次数:255
Python实现的Observer Pattern
最近因为部门调整,学习时间较多,利用这段时间抽空把Python又拿出来学习一下,借此机会也复习一下设计模式。下面使用Python简单实现如下:...
分类:编程语言   时间:2014-07-10 17:34:56    阅读次数:333
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!