逻辑信息模型(Logical Information Model) for Java:Example 15

逻辑信息模型(Logical Information Model) for Java:Example 15

"lim4j-samples": Example 15

逻辑信息模型(Logical Information Model) for Java:Example 15_第1张图片

 逻辑信息模型(Logical Information Model) for Java:Example 15_第2张图片


sample代码如下:

	public static void main(String[] args) throws Exception {
		InformationSection is1 = new InformationSection("Einstein and Bohr were two giants in the field of quantum mechanics, and several academic debates between them had great influence in the history of science. "
				+ "As early as 1924, Bohr co-authored a paper entitled 'Über die Quantentheorie der Strahlung' (About the Quantum Theory of Radiation), which proposed a highly controversial point of view that "
				+ "energy and momentum need not be conserved in a single microscopic interaction process, but only in a statistical sense. "
				+ "In this regard, Einstein wrote in a letter to Born, another physicist: 'Bohr's ideas about radiation are very interesting. "
				+ "But ... I find it utterly unacceptable the idea that when an electron is irradiated by radiation, not only the moment of its jump, but also the direction in which it jumps, are chosen by its own free will.'");

		InformationSection is2 = new InformationSection("@paper: 'Über die Quantentheorie der Strahlung'");
		InformationSection is3 = new InformationSection("Bohr's ideas about radiation are very interesting. "
				+ "But ... I find it utterly unacceptable the idea that when an electron is irradiated by radiation, not only the moment of its jump, but also the direction in which it jumps, are chosen by its own free will.");
		
		JudgedStatement js1 = new Proposition("Energy and momentum need not be conserved in a single microscopic interaction process, but only in a statistical sense.");

		Entity e1 = new Entity("Bohr");
		Entity e2 = new Entity("Einstein");
		
		Proposer p1 = new Proposer(e1);
		
		e2.propose(is3);
		
		Comment cm1 = new Comment(is3);
		
		Observer o1 = new Observer(e2, cm1);

		is2.setProposer(p1);
		is2.addObserver(o1);
		is2.addSubInformationElement(js1);
		
		is1.addSubInformationElement(is2);

		Root root = new Root(is1);

		root.marshalToXml(true, System.out);
	}


输出结果:



    
        Einstein and Bohr were two giants in the field of quantum mechanics, and several academic debates between them had great influence in the history of science. As early as 1924, Bohr co-authored a paper entitled 'Über die Quantentheorie der Strahlung' (About the Quantum Theory of Radiation), which proposed a highly controversial point of view that energy and momentum need not be conserved in a single microscopic interaction process, but only in a statistical sense. In this regard, Einstein wrote in a letter to Born, another physicist: 'Bohr's ideas about radiation are very interesting. But ... I find it utterly unacceptable the idea that when an electron is irradiated by radiation, not only the moment of its jump, but also the direction in which it jumps, are chosen by its own free will.'
        
    
    
        
        
        @paper: 'Über die Quantentheorie der Strahlung'
        
    
    
        
        Bohr's ideas about radiation are very interesting. But ... I find it utterly unacceptable the idea that when an electron is irradiated by radiation, not only the moment of its jump, but also the direction in which it jumps, are chosen by its own free will.
    
    
        Energy and momentum need not be conserved in a single microscopic interaction process, but only in a statistical sense.
    
    
        
    
    
        
        
    
    
        
    
    
        
    
    
        
            
        
    
    
        
    
    
        
        
    
    
        
            
        
    
    
        
            
        
    
    
        
            
        
    
    
        
            
        
    
    
        
            
        
    
    
        
            
        
    

=============================

源代码:
lim4j-samples:https://github.com/CodeJStudio/lim4j-samples
lim4j:        https://github.com/CodeJStudio/lim4j

参考文献:
《逻辑信息模型与逻辑信息网络》 / "Theory of Logical Information Model & Logical Information Network"
《从逻辑信息模型,到逻辑信息网络,直至实现通用人工智能》
 

你可能感兴趣的:(通用人工智能,逻辑学,Java,java,人工智能,数据结构,图论,知识图谱)