Thursday 28 April 2005

梦想

     看了Cutey的blog,有一则有关梦想。http://www.cnweblog.com/cutey/archive/2005/04/26/8446.html



     “梦想就是用来破碎的。”是有多少人有资格说呢?我想没有几个.....只有那些用尽其生命而追逐梦想的人,才有资格说吧。因为,梦想对于他们来说不是一个虚无飘渺的浮云,而是实实在在的一条路。尽管这条路异常昏暗,路崎岖异常,路旁的树木非常骇人,但路的尽头就是那温暖如家的小灯。这一切,对于赶路人就已经足够了。虽然不是每个人都能顺利达到路的尽头,他们可能已经在赶路的过程被各式各样的危险所吞没。或者,他们到了路的尽头,却没有发现美好的结局,美丽的尽头不是温馨的家,而是一只小小的萤火虫。破碎的梦想是苦涩的。这是赶路人的声音。但是却是异常坚强的。因为他们真正的追逐了梦想,他们理解了梦想的意义,虽然他们失败了或者发现实现的梦想并没有那么美好,但是他们敢于面对生活,敢于去追逐自己想要的生活。他们实现了活着的意义。



      人生的大部分时间,都是在赶路中憧憬美好的未来,间或迷失了方向,重新做起。我们对梦想的膜拜是神圣的。梦想成为我们生存的原动力。成为我们Passion的源头。我无法想象没有passhion,没有梦想。人生会变成什么样子。因为我崇尚这样一句话:"

自己不在乎的怎样都好,自己在乎的一定要做到最好。",如果我什么都不在乎,我不知道会活成什么样?没有了方向,没有了选择,不再承担责任.....人生不再有任何意义。记得高中的时候,什么也不想,没有梦想,不想未来,每天都是玩,全都是玩,玩什么无所谓,只要吸引注意力,kill time就好。一次班主任愤怒中带着失望和无奈的对我吼:你怎么什么都不在乎,你能不能在乎点什么!叛逆时期的我怎么能听得进去!于是,我的高中青春就在挥霍中度过了。本科的最后一年过得非常充实。实现了梦想,虽然但是也曾想过,如果梦想真的破碎后,我以后肯定不会再考了。因为我真正的去拼了一回。尽管,对别人说,如果考不上我还会再考的.......只不过安慰罢了。



      现在的我?不能说没有梦想,但是也绝不能说有梦想。现在的我更像是一个window shopper 一样看别人的奋斗努力。

虽然我也在努力,却不是发自内心,也许只是迫于压力吧。~~



     我真的希望,我有个资格说梦想就是用来破碎的,哪怕我失败了。我也是痛痛快快的活一回。

Wednesday 27 April 2005

Note for thesis of my lab(1)


摘录一些有用的东东:




智能Agent的特点:


1)反应性:智能Agent可以感知它们的环境,并可以对环境发生的变化以及时的方式做出反应,以满足它们的设计目标;


2)预动性:某个Agent通过主动发起可以表现出目标引导的行为,以满足它们的设计目标可以主动发起一个动作;


3)社会行为能力:一个Agent可以与其他Agent(也可能是人)交互,以满足它们的设计目标。




传统的对象的概念和这里说的Agent的概念至少有三个区别:


    1)与对象相比Agent包含有更强的自治性的概念,特别是它们自己决定是否接受其他 Agent的请求执行一个动作;


    2Agent具有灵活的(反应的、预动的、社会的)行为能力,标准的对象模型根本没有这种行为能力;


3)多Agent系统本质上是多线程的,其中每个Agent至少假设有一个控制线程。


  



  

Agent与专家系统的主要区别如下:


1)“经典”专家系统是与现实分离的——它们与任何环境没有直接联系,而是把用户作为“中间人”发生作用;


2)专家系统一般不能采取反应式的、预动的行动;


3)专家系统一般没有社会行为能力,不能进行合作、协调和协商。






的确如此:不过还是有些模糊,是专家系统作为Agent呢?还是将推理机作为Agent?我更倾向后者。




Tuesday 26 April 2005

Note for Distributed Blackboard Architecture





   传说中的Gelerntner's LINDA model架构。这个架构是由多个黑板组成的。每个黑板都在一个Agent上面,Agent上面有一个Servier,用来负责调度。可以从这个图片看出,这个架构应该是一个树形结构的。并且分成等级。低等级的Agent获得一个自己不能解决的求解目标的时候,就将这个问题提交给上一级的Agent的黑板,上一级的黑板负责进一步的调度,它先将问题交给自己的其他下级Agent来完成,如果它们也无法完成,那么就继续提交给上级,直到完成。因此,从这个架构图来看,就像是一个树的遍历,而且是自底向上的遍历。不过,这个架构总体来说和我们的项目的差距非常地大。一方面,我们将推理机看成Agent,而几个推理机通常在一个容器中。就是说,他们都是在本机完成,如果本机的推理机无法完成这个推理机任务,那么再考虑其他容器中的推理机能否完成。而且,看LInda的架构,Agent是分等级的,有父有子,而我们的多个容器其关系应该是对等关系。

Sunday 24 April 2005

三天打工生活终于结束了

     批了三天卷子,累了半死,赚了一点点钱。不过,总体来说还是学到一些东西的。尽管这样的活,我以后肯定不会再做,不为什么,我不喜欢重复这种不用脑子的劳动。虽然,在无数次的重复劳动中,工作效率可以一点点提高,脑子一点点发木,直到什么也不会想了。我想,我是非常非常需要创造性劳动的~~



      这几天发现上海的房价跌了,呵呵,很开心,希望我去的时候上海的楼市能够趋于正常。理性和思考是最重要的。失去了理性或者失去了思考,成为疯子或者机械的动物是非常非常地可怕的!!!!

Thursday 21 April 2005

Note for Blackboard Architecture

 

提出黑板架构的目的To address issues of information sharing among multiple heterogeneous problem-solving agents.异构的Agent很有采用黑板的必要,因为他们需要“翻译”。


   在架构中:The blackboard is used as a central repository for all shared information. The information on the blackboard represents facts, assumptions, and deductions (推理过程中产生的中间结果)made by the system during the course of solving a problem. Each expert brings a unique set of knowledge to bear, and each may employ a different problem-solving strategy.(每个专家系统所领导的推理机!) Each expert views the information on the blackboard, and tries to contribute to the solution, if possible. (黑板驱动推理机进行推理机,而我们的系统则希望推理机先把问题放进去, - -A facilitator controls the chalk, mediating among experts competing to write on the blackboard. (中心控制风格,有仲裁机构)The facilitator's function is to determine which expert, at a given point it time, has the most important insight or information to contribute to the problem's solution.


A problem-solving session begins with the facilitator writing the problem specification, along with all known relevant facts and assumptions, on the blackboard, which is visible to all the experts. As individual experts recognize opportunities to apply their own specialized knowledge to the present state of the problem solution, they request the attention of the facilitator. The facilitator selects,(中心仲裁需要选择合适的问题解决人- - from among those experts requesting attention, the most promising contribution, and writes that insight on the blackboard. This process continues, iteratively, until the problem has been solved.



  • In more precise terms, the blackboard may be thought of as a database which represents the working memory of the problem solving system. The experts are modular software subsystems, called knowledge sources(什么意思?专家为什么要和推理机放在一起呢?也许,专家系统可以调用不同的知识??), that represent different points of view, different strategies, and different kinds of knowledge, about how to solve a problem. These problem-solving paradigms include:

  • Rule-based systems

  • Case-based systems

  • Neural networks

  • Fuzzy logic systems

  • Genetic algorithms

  • Legacy (traditional procedural) software systems


The facilitator is represented by the control system, comprised of an event detector (用于被写入问题触发或者被解答触发)and an agenda manager(负责仲裁哪个专家应该负责问题。), that manages interaction between the blackboard, the knowledge sources, and external sources such as users and data acquisition or control systems. The event detector updates the blackboard from sources of external input. The agenda manager adjudicates among experts competing to write to the blackboard.

C代号运动的第一天的总结

     从4点开始的,现在刚刚完成一半,看了3个小时的论文,有了计划和目标以后效率的确高了很多。写了笔记,嗯~~,笔记刚刚放到上面了。感觉有点累了,明天还要继续批卷子~~,回去还要学习一会英语。加油!

Note for Blackboard Architecture

 

提出黑板架构的目的To address issues of information sharing among multiple heterogeneous problem-solving agents.异构的Agent很有采用黑板的必要,因为他们需要“翻译”。


   在架构中:The blackboard is used as a central repository for all shared information. The information on the blackboard represents facts, assumptions, and deductions (推理过程中产生的中间结果)made by the system during the course of solving a problem. Each expert brings a unique set of knowledge to bear, and each may employ a different problem-solving strategy.(每个专家系统所领导的推理机!) Each expert views the information on the blackboard, and tries to contribute to the solution, if possible. (黑板驱动推理机进行推理机,而我们的系统则希望推理机先把问题放进去, - -A facilitator controls the chalk, mediating among experts competing to write on the blackboard. (中心控制风格,有仲裁机构)The facilitator's function is to determine which expert, at a given point it time, has the most important insight or information to contribute to the problem's solution.


A problem-solving session begins with the facilitator writing the problem specification, along with all known relevant facts and assumptions, on the blackboard, which is visible to all the experts. As individual experts recognize opportunities to apply their own specialized knowledge to the present state of the problem solution, they request the attention of the facilitator. The facilitator selects,(中心仲裁需要选择合适的问题解决人- - from among those experts requesting attention, the most promising contribution, and writes that insight on the blackboard. This process continues, iteratively, until the problem has been solved.



  • In more precise terms, the blackboard may be thought of as a database which represents the working memory of the problem solving system. The experts are modular software subsystems, called knowledge sources(什么意思?专家为什么要和推理机放在一起呢?也许,专家系统可以调用不同的知识??), that represent different points of view, different strategies, and different kinds of knowledge, about how to solve a problem. These problem-solving paradigms include:

  • Rule-based systems

  • Case-based systems

  • Neural networks

  • Fuzzy logic systems

  • Genetic algorithms

  • Legacy (traditional procedural) software systems


The facilitator is represented by the control system, comprised of an event detector (用于被写入问题触发或者被解答触发)and an agenda manager(负责仲裁哪个专家应该负责问题。), that manages interaction between the blackboard, the knowledge sources, and external sources such as users and data acquisition or control systems. The event detector updates the blackboard from sources of external input. The agenda manager adjudicates among experts competing to write to the blackboard.

C代号运动的第一天的总结

     从4点开始的,现在刚刚完成一半,看了3个小时的论文,有了计划和目标以后效率的确高了很多。写了笔记,嗯~~,笔记刚刚放到上面了。感觉有点累了,明天还要继续批卷子~~,回去还要学习一会英语。加油!

Wednesday 13 April 2005

COM+学习体会(一)

COM+的东西虽然用起来简单了一些,只要引用就可以,但实际上,如果想真正合适的一个引用的服务并不是很容易的,还是需要了解COM的知识的,COM世界博大精深,需要好好努力了!



写了第一小程序,调试经验如下:

1、程序集必须有一个强名称。

2、使用COM+的类必须是Public的,如果是私有的,将不能使用COM+服务。



导出COM+的两种方式:

1、Server Application:导出组件以及其配置,并配置到另一台机器上。以*.MSI的格式,生成Install文件。(使用于从开发的机器转移到使用的机器上。)

2、Client Proxy:仅仅导出代理,可以使其在另一台机器远程使用本机的服务。(并不是真正的导出组件)



COM+ Catalog编程实现:



Com+ Admin Library用于负责编程实现COM+ Catalog的功能。



简单的企业服务安装模式:

System.EnterpriseServices.RegistrationHelper接口也可以提供简单的COM+注册服务。当然功能少很多。

简单看了一下,主要提供初始化一个组件,Install,以及deInstall



一个最简单的程序:



namespace ER

{

    
/// <summary>

    
/// Class1 的摘要说明。

    
/// </summary>


    public class  Register

    
{

        
private string path=@"c:\COMTest.dll";

        
private string appId;

        
private string typeId;

        
public  Register()

        
{

            

        }


        
public void Install()

        
{

            System.EnterpriseServices.RegistrationHelper rh
=new RegistrationHelper ();

              rh.InstallAssembly (path,
ref appId,ref  typeId,System.EnterpriseServices.InstallationFlags.Install);

         }


    }


}








以下是其测试代码:

使用了NUNIT2.2







using System;

using NUnit.Framework;



namespace ER

{

    
/// <summary>

    
/// TestRegister 的摘要说明。

    
/// </summary>


    [TestFixture]

    
public class TestRegister

    
{

        
public TestRegister()

        
{

 

        }


        [Test]

        
public void test()

        
{

            Register registerObj
=new Register ();

            registerObj.Install();

        }


    }


}