码迷,mamicode.com
首页 >  
搜索关键字:custom state    ( 10586个结果
POJ - 2688 Cleaning Robot
题意:求回收所有垃圾的最短路 思路:先BFS处理两个垃圾的距离,然后DFS记忆化搜索           dp[i][state]表示处理到第i个后状态是state的最短路 #include #include #include #include #include #include using namespace std; const int MAXN = 30; const in...
分类:其他好文   时间:2014-06-19 12:55:30    阅读次数:412
AngularJS - Directive Restrictions
While it’s cool to make a custom element like we did the the previous cast, it’s actually more common to do things like create custom attributes. Thes...
分类:Web程序   时间:2014-06-16 10:19:04    阅读次数:276
设计模式之状态模式
《设计模式》对状态模式的定义:同意一个对象在其状态改变时,改变它的行为。看起来对象似乎改动了它的类。别名:状态对象(Objects for State)。在以下两种情况下均能够使用State模式:1 一个对象的行为取决于它的状态,而且他必须在执行时刻依据状态改变它的行为。2 一个操作中含有庞大的多分...
分类:其他好文   时间:2014-06-16 08:13:02    阅读次数:237
newton's three laws of motion(牛顿三大运动定律)
1、Every object in a state of uniform motion tends to remain in that state of motion unless an external force is applied to it.无外力的作用下,物体静态 2.The relationship between an object's mass m,it's accelerat...
分类:其他好文   时间:2014-06-15 16:46:22    阅读次数:304
状态(state)模式
*状态模式(State):当一个对象的内在状态改变时允许改变其行为,这个对象看起来像是改变了其类。状态模式主要解决的是当控制一个对象状态转换的条件表达式过于复杂的时候,吧状态判断逻辑独立到一系列的类中,是复杂的逻辑简单化。 Work work = new Work(); ...
分类:其他好文   时间:2014-06-15 06:45:17    阅读次数:239
自定义actionbar
android中的actionbar可提供自定义view,具体是先写好自定义view的布局,然后在代码中获取Actionbar对象,调用 setCustomView方法。 但是这样,它还是会显示前面的LOGO,即使你设置 不显示 LOGO和标题。解决的方法是调用 actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM); 具体代码如下...
分类:其他好文   时间:2014-06-14 07:45:30    阅读次数:215
工作过程中遇到的链接笔记
(1):这个包包含一个简单的基于平面文件的 Custom Java Authentication Provider。它对于离线设置或测试安装非常方便,不需要任何第三方软件。请点击
分类:其他好文   时间:2014-06-12 15:47:18    阅读次数:169
EtherCAT状态机----Kithara RTS
本文摘自Kithara RTS官网对EtherCAT状态机的介绍The EtherCAT state machineEtherCAT状态机EtherCAT defines 5 different states BOOT, INIT, PREOP, SAFEOP and OP.These are id...
分类:其他好文   时间:2014-06-12 15:10:49    阅读次数:1232
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!