??xml version="1.0" encoding="utf-8" standalone="yes"?>在线国产一区二区三区,国产精品永久免费视频,久久免费视频一区http://www.aygfsteel.com/rednight/category/14445.html0x2B|~0x2B,That's not a question,Just do it.zh-cnTue, 26 Jun 2007 20:25:37 GMTTue, 26 Jun 2007 20:25:37 GMT60state patternhttp://www.aygfsteel.com/rednight/archive/2006/12/26/90105.htmlrednightrednightTue, 26 Dec 2006 06:46:00 GMThttp://www.aygfsteel.com/rednight/archive/2006/12/26/90105.htmlhttp://www.aygfsteel.com/rednight/comments/90105.htmlhttp://www.aygfsteel.com/rednight/archive/2006/12/26/90105.html#Feedback0http://www.aygfsteel.com/rednight/comments/commentRss/90105.htmlhttp://www.aygfsteel.com/rednight/services/trackbacks/90105.htmlThe logic to change state is only inside one method (initVesselView(?) inside GrVessel.java. 

if (viewType == VIEW_STOWAGE) {
            vslView_ = new VesselStowageView(leftPoint, bow2Left, leftCenter,
                                             rightCenter, shipWidth_);
        }
        else if (viewType == VIEW_SIDE) {
            vslView_ = new VesselSideView(leftPoint, bow2Left, leftCenter,
                                          rightCenter, shipWidth_);
        }
        else if (viewType == VIEW_PLAN) {
            vslView_ = new VesselPlanView(leftPoint, bow2Left, leftCenter,
                                          rightCenter, shipWidth_);
        }
        else {
            throw new IllegalArgumentException(
                "GrVessel::initVesselView-->Invalid view type!");
        }


We do not need to repeat this logic of changing view in many other method.
This is the benefit of State design pattern.
The 3 state classes here are VesselPlanView.java, VesselSideView.java and VesselStowageView.java

Please note that in the state classes, if a method is supported by stateA and not supported by stateB. 
Then, in stateB, the method body will throw an exception (IllegalArgumentException) to indicate that coder call the wrong method in the wrong state.

Example, in VesselPlanView.java, public boolean addStowage(...).  This method is only meaningful to stowageView.

public boolean addStowage(IlvManager manager, List transformList, IlvGraphic stowage, String stadBayN,
                              boolean isSelect) {
        throw new IllegalArgumentException(
                "GrVessel::addStowage-->be sure the vessel at stowage view!");
    }


Hence, in PlanView, the method body will throw exception.

Just to share with you a better way to code.



rednight 2006-12-26 14:46 发表评论
]]>
谁有IloSolver的资?/title><link>http://www.aygfsteel.com/rednight/archive/2006/08/31/66829.html</link><dc:creator>rednight</dc:creator><author>rednight</author><pubDate>Thu, 31 Aug 2006 04:22:00 GMT</pubDate><guid>http://www.aygfsteel.com/rednight/archive/2006/08/31/66829.html</guid><wfw:comment>http://www.aygfsteel.com/rednight/comments/66829.html</wfw:comment><comments>http://www.aygfsteel.com/rednight/archive/2006/08/31/66829.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/rednight/comments/commentRss/66829.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/rednight/services/trackbacks/66829.html</trackback:ping><description><![CDATA[目中需要用IloSolver,但没人懂,|上资料太少?不知道谁有这斚w的资料给发一?谢谢?<br /><br /><a href="mailto:rcashellster@gmail.com">rcashellster@gmail.com</a><img src ="http://www.aygfsteel.com/rednight/aggbug/66829.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/rednight/" target="_blank">rednight</a> 2006-08-31 12:22 <a href="http://www.aygfsteel.com/rednight/archive/2006/08/31/66829.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>公司名称http://www.aygfsteel.com/rednight/archive/2006/08/26/65906.htmlrednightrednightSat, 26 Aug 2006 02:36:00 GMThttp://www.aygfsteel.com/rednight/archive/2006/08/26/65906.htmlhttp://www.aygfsteel.com/rednight/comments/65906.htmlhttp://www.aygfsteel.com/rednight/archive/2006/08/26/65906.html#Feedback0http://www.aygfsteel.com/rednight/comments/commentRss/65906.htmlhttp://www.aygfsteel.com/rednight/services/trackbacks/65906.html
ABC ABC货柜航运公司 A.B.C CONTAINTER LINE
ACBL 国商业驌航运公司 American Commercial Barge Line company
ACGR 冠航集团 Ace Group
ACL 大西z集装箱航运公司 Atlantic Contaier Line
ACT 联合集装p输公司(英) Associated Container Transportation
。。。。。。?nbsp; 阅读全文

rednight 2006-08-26 10:36 发表评论
]]>
世界主要船公司名U及|址http://www.aygfsteel.com/rednight/archive/2006/08/26/65905.htmlrednightrednightSat, 26 Aug 2006 02:34:00 GMThttp://www.aygfsteel.com/rednight/archive/2006/08/26/65905.htmlhttp://www.aygfsteel.com/rednight/comments/65905.htmlhttp://www.aygfsteel.com/rednight/archive/2006/08/26/65905.html#Feedback0http://www.aygfsteel.com/rednight/comments/commentRss/65905.htmlhttp://www.aygfsteel.com/rednight/services/trackbacks/65905.html
澛_利亚国家航运有限公司-ANLQ澳大利亚)


ANL CONTAINER LINE PTY Ltd

http://www.anl.com.au/index.php3   阅读全文

rednight 2006-08-26 10:34 发表评论
]]>
数据库设计[转]http://www.aygfsteel.com/rednight/archive/2006/08/26/65901.htmlrednightrednightSat, 26 Aug 2006 02:21:00 GMThttp://www.aygfsteel.com/rednight/archive/2006/08/26/65901.html
关系数据库设计之时是要遵守一定的规则的。尤其是数据库设计范?现简单介l?NFQ第一范式Q,2NFQ第二范式)Q?NFQ第三范式)和BCNFQ另有第四范式和W五范式留到以后再介l?在你设计数据库之Ӟ若能W合q几个范式,你就是数据库设计的高手?  阅读全文

rednight 2006-08-26 10:21 发表评论
]]>
集群环境下WEB APP开发需要注意的几点http://www.aygfsteel.com/rednight/archive/2006/08/26/65898.htmlrednightrednightSat, 26 Aug 2006 02:04:00 GMThttp://www.aygfsteel.com/rednight/archive/2006/08/26/65898.htmlhttp://www.aygfsteel.com/rednight/comments/65898.htmlhttp://www.aygfsteel.com/rednight/archive/2006/08/26/65898.html#Feedback0http://www.aygfsteel.com/rednight/comments/commentRss/65898.htmlhttp://www.aygfsteel.com/rednight/services/trackbacks/65898.html对于大型的WEB APP多数需要在集群环境下运?那么在开发WEB APP时就需要注意几?以便可以支持FAILOVER.

1. SESSION中的数据做了修改后一定要手动的SET到SESSION ?br />    如果当前的MANAGED SERVER DOWN?ADMIN SERVER会自动failover到其他的MANAGED SERVER, q复制SESSION数据.当你对SESSION中的数据做了修改?必须SET回SESSION,否则修改后的数据不会被复制到另一个SERVER,数据丢失.

2. SESSION中的数据必须是可序列化的.
    很容易理? 只有可以被序列化的数据才能被复制

3. 静态数据必L只读?br />    同上, 当FAILOVER?静态数据是不会被复制的,如果静态数据被修改?白改!
    例如l常会用静态属性去做记数器,q样需要考虑用其他方法了

其实qWEB APP目前没有准备使用集群,也应该注意这几点,以便以后可以方便的移植到集群.

Ƣ迎大家指正和补?



rednight 2006-08-26 10:04 发表评论
]]>
可配|?/title><link>http://www.aygfsteel.com/rednight/archive/2006/08/25/65842.html</link><dc:creator>rednight</dc:creator><author>rednight</author><pubDate>Fri, 25 Aug 2006 11:39:00 GMT</pubDate><guid>http://www.aygfsteel.com/rednight/archive/2006/08/25/65842.html</guid><wfw:comment>http://www.aygfsteel.com/rednight/comments/65842.html</wfw:comment><comments>http://www.aygfsteel.com/rednight/archive/2006/08/25/65842.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/rednight/comments/commentRss/65842.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/rednight/services/trackbacks/65842.html</trackback:ping><description><![CDATA[ <p>多数目是由用户提出需?我们的项目用戯求我们来推荐需?然后׃们来审核.<br />今天带着1个多月整理的需求文跟用户一赯?说是讨论,大部分是由我们讲解给用户?只要有拿不定L的地方就是一句话"Ҏ可配|?.<br />可配|不但可以提高系l的灉|?也可以解决一些摸׃可的需?以后pȝ只要遇到pȝ可以配置的地?不用考虑,作成可配|?一准没?</p> <img src ="http://www.aygfsteel.com/rednight/aggbug/65842.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/rednight/" target="_blank">rednight</a> 2006-08-25 19:39 <a href="http://www.aygfsteel.com/rednight/archive/2006/08/25/65842.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>取消SiteMinder中的跨站脚本?/title><link>http://www.aygfsteel.com/rednight/archive/2006/08/24/65633.html</link><dc:creator>rednight</dc:creator><author>rednight</author><pubDate>Thu, 24 Aug 2006 13:37:00 GMT</pubDate><guid>http://www.aygfsteel.com/rednight/archive/2006/08/24/65633.html</guid><wfw:comment>http://www.aygfsteel.com/rednight/comments/65633.html</wfw:comment><comments>http://www.aygfsteel.com/rednight/archive/2006/08/24/65633.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/rednight/comments/commentRss/65633.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/rednight/services/trackbacks/65633.html</trackback:ping><description><![CDATA[ <p>一个项目中的URL中有HTMLҎW号,被SiteMinderL?想了许多ҎLq个URL,没成? 后来才想C改SiteMinder的配|?反正是内部有限的几个Z?没有必要留着跨站脚本的检?于是问题得到解决.</p> <p>下面是SiteMInder文档中的一D?</p> <p> <strong>Disabling Cross-Site Scrpting Checks</strong> </p> <p> <strong>In most cases, the Web Agent should block against cross-site scripting, However, if you have URLs that include HTML characters or your site already has an application that checks for croos-site scripting, you may want to disable this feature.</strong> </p> <p> <strong>To disable the cross-site cripting:</strong> </p> <p> <strong>Add the following parameter to the WebAgent.conf file:</strong> </p> <p> <strong>csschecking = "No"</strong> </p> <p> <strong>The default is YES.</strong> </p> <p> <strong>For detailed information about cross-site scripting, refer to the following site:</strong> </p> <p> <strong> <a >http://www.cert.org/</a> and read CERT advisory CA-2000-02.</strong> </p> <img src ="http://www.aygfsteel.com/rednight/aggbug/65633.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/rednight/" target="_blank">rednight</a> 2006-08-24 21:37 <a href="http://www.aygfsteel.com/rednight/archive/2006/08/24/65633.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">̺</a>| <a href="http://" target="_blank">괨</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">̨</a>| <a href="http://" target="_blank">ʯ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ī</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">³ľ</a>| <a href="http://" target="_blank">Ϫ</a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">첼</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ƽ</a>| <a href="http://" target="_blank">޶</a>| <a href="http://" target="_blank">ͤ</a>| <a href="http://" target="_blank">ᶼ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ʯȪ</a>| <a href="http://" target="_blank">ƽ</a>| <a href="http://" target="_blank">ά</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ԭ</a>| <a href="http://" target="_blank">лͨ</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>