锘??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[欏圭洰涓渶瑕佷嬌鐢↖loSolver,浣嗘病浜烘噦,緗戜笂璧勬枡澶皯浜?涓嶇煡閬撹皝鏈夎繖鏂歸潰鐨勮祫鏂欑粰鍙戜竴浠?璋㈣阿浜?<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 澶цタ媧嬮泦瑁呯鑸繍鍏徃 Atlantic Contaier Line
ACT 鑱斿悎闆嗚綆辮繍杈撳叕鍙革紙鑻憋級 Associated Container Transportation
銆傘傘傘傘傘傘?nbsp; 闃呰鍏ㄦ枃

rednight 2006-08-26 10:36 鍙戣〃璇勮
]]>
涓栫晫涓昏鑸瑰叕鍙稿悕縐板強緗戝潃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
婢沖ぇ鍒╀簹鍥藉鑸繍鏈夐檺鍏徃-ANL錛堟境澶у埄浜氾級


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
鍏崇郴鏁版嵁搴撹璁′箣鏃舵槸瑕侀伒瀹堜竴瀹氱殑瑙勫垯鐨勩傚挨鍏舵槸鏁版嵁搴撹璁¤寖寮?鐜扮畝鍗曚粙緇?NF錛堢涓鑼冨紡錛夛紝2NF錛堢浜岃寖寮忥級錛?NF錛堢涓夎寖寮忥級鍜孊CNF錛屽彟鏈夌鍥涜寖寮忓拰絎簲鑼冨紡鐣欏埌浠ュ悗鍐嶄粙緇嶃?鍦ㄤ綘璁捐鏁版嵁搴撲箣鏃訛紝鑻ヨ兘絎﹀悎榪欏嚑涓寖寮忥紝浣犲氨鏄暟鎹簱璁捐鐨勯珮鎵嬨?  闃呰鍏ㄦ枃

rednight 2006-08-26 10:21 鍙戣〃璇勮
]]>
闆嗙兢鐜涓媁EB 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瀵逛簬澶у瀷鐨刉EB APP澶氭暟闇瑕佸湪闆嗙兢鐜涓嬭繍琛?閭d箞鍦ㄥ紑鍙慦EB APP鏃跺氨闇瑕佹敞鎰忓嚑鐐?浠ヤ究鍙互鏀寔FAILOVER.

1. SESSION涓殑鏁版嵁鍋氫簡淇敼鍚庝竴瀹氳鎵嬪姩鐨凷ET鍒癝ESSION 涓?br />聽聽聽 濡傛灉褰撳墠鐨凪ANAGED SERVER DOWN鎺?ADMIN SERVER浼氳嚜鍔╢ailover鍒板叾浠栫殑MANAGED SERVER,聽騫跺鍒禨ESSION鏁版嵁.褰撲綘瀵筍ESSION涓殑鏁版嵁鍋氫簡淇敼鍚?蹇呴』SET鍥濻ESSION,鍚﹀垯淇敼鍚庣殑鏁版嵁涓嶄細琚鍒跺埌鍙︿竴涓猄ERVER,鏁版嵁涓㈠け.

2. SESSION涓殑鏁版嵁蹇呴』鏄彲搴忓垪鍖栫殑.
聽聽聽 寰堝鏄撶悊瑙? 鍙湁鍙互琚簭鍒楀寲鐨勬暟鎹墠鑳借澶嶅埗

3. 闈欐佹暟鎹繀欏繪槸鍙鐨?br />聽聽聽聽鍚屼笂, 褰揊AILOVER鏃?闈欐佹暟鎹槸涓嶄細琚鍒剁殑,濡傛灉闈欐佹暟鎹淇敼浜?鐧芥敼!
聽聽聽聽渚嬪緇忓父浼氱敤闈欐佸睘鎬у幓鍋氳鏁板櫒,榪欐牱灝遍渶瑕佽冭檻鐢ㄥ叾浠栨柟娉曚簡

鍏跺疄灝辯畻WEB 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涓鏈堟暣鐞嗙殑闇姹傛枃妗h窡鐢ㄦ埛涓璧瘋璁?璇存槸璁ㄨ,澶ч儴鍒嗘槸鐢辨垜浠瑙g粰鐢ㄦ埛鍚?鍙鏈夋嬁涓嶅畾涓繪剰鐨勫湴鏂瑰氨鏄竴鍙ヨ瘽"鏀規垚鍙厤緗?.<br />鍙厤緗笉浣嗗彲浠ユ彁楂樼郴緇熺殑鐏墊椿鎬?涔熷彲浠ヨВ鍐充竴浜涙懜媯變袱鍙殑闇姹?浠ュ悗緋葷粺鍙閬囧埌緋葷粺鍙互閰嶇疆鐨勫湴鏂?涓嶇敤鑰冭檻,浣滄垚鍙厤緗?涓鍑嗘病閿?</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>涓涓」鐩腑鐨刄RL涓湁HTML鐗規畩絎﹀彿,琚玈iteMinder闃繪浜?鎯充簡璁稿鏂規硶鍘繪敼榪欎釜URL,娌℃垚鍔? 鍚庢潵鎵嶆兂鍒頒慨鏀筍iteMinder鐨勯厤緗?鍙嶆鏄唴閮ㄦ湁闄愮殑鍑犱釜浜轟嬌鐢?娌℃湁蹇呰鐣欑潃璺ㄧ珯鑴氭湰鐨勬楠?浜庢槸闂寰楀埌瑙e喅.</p> <p>涓嬮潰鏄疭iteMInder鏂囨。涓殑涓孌?</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>