Virgo整合ECF

Java_gui_4_ECF:为进化计算框架制作的图形用户界面 ECF实验室 该项目始于萨格勒布的电气工程和计算学院,用于软件设计项目课程,后来用于 BSc 论文。 它的主要目的是简化进化计算框架 (ECF) 的使用。 任务是制作便携式桌面应用程序,该应用程序应该运行用 C++ 编写的 ECF。 为此,我们决定使用 Swing 作为 Java 平台的一部分。 在 ECF Lab 之前,用户必须手动编写配置文件并从控制台运行实验。 结果采用纯文本文件的形式,没有图形表示。 在执行实验过程中犯了很多错误,因此显然需要这样的应用程序。 ECF Lab 支持并行执行大量实验,并提供计算结果的良好可视化。 这个应用程序应该是独立于版本的,所以当添加新的算法、基因型和参数时,应用程序应该像以前一样工作。 有关 ECF 项目的更多信息: : 视频演示 选择代表优化问题的 ECF 可执行文件。 (点击查看视频) 配置文件包含 ECF 引擎的重要信息。 它描述了 立即下载
ECF框架是OSGI-RemoteService的声明实现,其依赖Bundle包括:
org.eclipse.ecf
org.eclipse.ecf.osgi.services.distribution
org.eclipse.ecf.osgi.services.remoteserviceadmin
org.eclipse.ecf.osgi.services.remoteserviceadmin.proxy
org.eclipse.core.runtime
org.eclipse.equinox.app
org.eclipse.ecf.identity
org.eclipse.ecf.discovery
org.eclipse.equinox.concurrent
org.eclipse.equinox.preferences
org.eclipse.core.jobs
org.eclipse.equinox.registry
org.eclipse.osgi.services.remoteserviceadmin
org.eclipse.core.contenttype
org.eclipse.ecf.provider.jmdns
org.eclipse.ecf.sharedobject
org.eclipse.ecf.provider
org.eclipse.ecf.remoteservice
org.eclipse.ecf.provider.remoteservice
ECF框架的很多plugin都设计成了延迟加载模式(Bundle-ActivationPolicy: lazy),因此需要首先修改virgo的配置文件($VTS-HOME/lib/org.eclipse.virgo.kernel.launch.properties).将osgi.compatibility.eagerStart.LazyActivation属性设置成true,来确保virgo支持延迟加载机制。

另外所声明服务的bundle(这里为org.chen.test.service)和发布服务的bundle(这里为org.chen.test)也需要声明成延迟加载模式(Bundle-ActivationPolicy: lazy)
一、通过DS方式发布RemoteService
Plan信息如下:
<?xml version="1.0" encoding="UTF-8"?>
<plan name="ecf.plan" version="1.0.0" scoped="false" atomic="true"
        xmlns="http://www.eclipse.org/virgo/schema/plan"
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		xsi:schemaLocation="http://www.eclipse.org/virgo/schema/plan
	http://www.eclipse.org/virgo/schema/plan/eclipse-virgo-plan.xsd">
	<artifact name="org.eclipse.ecf" type="bundle"/>
	<artifact name="org.eclipse.ecf.osgi.services.distribution" type="bundle"/>
	<artifact name="org.eclipse.ecf.osgi.services.remoteserviceadmin" type="bundle"/>
	<artifact name="org.eclipse.ecf.osgi.services.remoteserviceadmin.proxy" type="bundle"/>
	<artifact name="org.eclipse.core.runtime" type="bundle"/>
	<artifact name="org.eclipse.equinox.app" type="bundle"/>
	<artifact name="org.eclipse.ecf.identity" type="bundle"/>
	<artifact name="org.eclipse.ecf.discovery" type="bundle"/>	
	<artifact name="org.eclipse.equinox.concurrent" type="bundle"/>
	<artifact name="org.eclipse.equinox.preferences" type="bundle"/>
	<artifact name="org.eclipse.core.jobs" type="bundle"/>
	<artifact name="org.eclipse.equinox.registry" type="bundle"/>
	<artifact name="org.eclipse.osgi.services.remoteserviceadmin" type="bundle"/>
	<artifact name="org.eclipse.core.contenttype" type="bundle"/>
	<artifact name="org.eclipse.ecf.provider.jmdns" type="bundle"/>
	<artifact name="org.eclipse.ecf.sharedobject" type="bundle"/>
	<artifact name="org.eclipse.ecf.provider" type="bundle"/>
	<artifact name="org.eclipse.ecf.remoteservice" type="bundle"/>
	<artifact name="org.eclipse.ecf.provider.remoteservice" type="bundle"/>
	<artifact name="org.chen.test.service" type="bundle"/>
	<artifact name="org.chen.test" type="bundle"/>
</plan>
服务发布如下:
<?xml version="1.0" encoding="UTF-8"?>
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" 
	enabled="true" immediate="true" name="hello.ds.host">
   <implementation class="org.chen.test.HelloComponent"/>
   <property name="service.exported.interfaces" type="String" value="*"/>
   <property name="service.exported.configs" type="String" value="ecf.generic.server"/>
   <property name="ecf.exported.containerfactoryargs" type="String" value="ecftcp://localhost:3787/server"/>
   <service>
      <provide interface="org.chen.test.service.IHelloService"/>
   </service>
</scr:component>
二、通过gemini发布、获取服务
在DS发布环境的基础上新增 cn.com.gei.krp.remoteservice,该bundle用于发布和获取远程服务。
1.RemoteServiceExporter用于发布远程服务,发布配置如下:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:osgi="http://www.springframework.org/schema/osgi"
   xsi:schemaLocation="http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/osgi
       http://www.springframework.org/schema/osgi/spring-osgi.xsd">
	
	<bean id="helloService" class="org.chen.test.HelloComponent" />
	<osgi:reference id="containerManager" interface="org.eclipse.ecf.core.IContainerManager"/>
	<bean id="helloServiceExporter" class="cn.com.gei.krp.remoteservice.RemoteServiceExporter" init-method="start">
		<property name="containerManager" ref="containerManager"/>
		<!-- 服务接口 -->
		<property name="serviceInterface" value="org.chen.test.service.IHelloService"/>
		<!-- 服务实例 -->
		<property name="serviceImplementation" ref="helloService"/>
		<!-- 服务URL -->
		<property name="serviceHostAddress" value="ecftcp://localhost:3788/server" />
	</bean>
</beans>
2.RemoteServiceImporter用于获取远程服务,配置如下:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xmlns:osgi="http://www.springframework.org/schema/osgi"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/osgi
       http://www.springframework.org/schema/osgi/spring-osgi.xsd">
	<osgi:reference id="containerManager" interface="org.eclipse.ecf.core.IContainerManager" />
	<bean id="helloServiceImporter"
		class="cn.com.gei.krp.remoteservice.RemoteServiceImporter" init-method="start">
		<property name="containerManager" ref="containerManager" />
		<property name="serviceInterface"
			value="org.chen.test.service.IHelloService" />
		<property name="remoteServiceHostAddress" value="ecftcp://localhost:3788/server" />
	</bean>
	<bean id="helloService" factory-bean="helloServiceImporter" factory-method="getRemoteService" />
	<bean id="consumer" class="proxy.remote.Consumer">
		<property name="service" ref="helloService"></property>
	</bean>
</beans>
Plan信息如下:
<?xml version="1.0" encoding="UTF-8"?>
<plan name="ecf.plan" version="1.0.0" scoped="false" atomic="true"
        xmlns="http://www.eclipse.org/virgo/schema/plan"
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		xsi:schemaLocation="http://www.eclipse.org/virgo/schema/plan
		        http://www.eclipse.org/virgo/schema/plan/eclipse-virgo-plan.xsd">
	<artifact name="org.eclipse.ecf" type="bundle"></artifact>
	<artifact name="org.eclipse.ecf.osgi.services.distribution" type="bundle"></artifact>
	<artifact name="org.eclipse.ecf.osgi.services.remoteserviceadmin" type="bundle"></artifact>
	<artifact name="org.eclipse.ecf.osgi.services.remoteserviceadmin.proxy" type="bundle"></artifact>
	<artifact name="org.eclipse.core.runtime" type="bundle"/>
	<artifact name="org.eclipse.equinox.app" type="bundle"></artifact>
	<artifact name="org.eclipse.ecf.identity" type="bundle"/>
	<artifact name="org.eclipse.ecf.discovery" type="bundle"/>
	<artifact name="org.eclipse.equinox.concurrent" type="bundle"/>
	<artifact name="org.eclipse.equinox.preferences" type="bundle"/>
	<artifact name="org.eclipse.core.jobs" type="bundle"></artifact>
	<artifact name="org.eclipse.equinox.registry" type="bundle"/>
	<artifact name="org.eclipse.osgi.services.remoteserviceadmin" type="bundle"></artifact>
	<artifact name="org.eclipse.core.contenttype" type="bundle"/>
	<artifact name="org.eclipse.ecf.provider.jmdns" type="bundle"/>
	<artifact name="org.eclipse.ecf.sharedobject" type="bundle"/>
	<artifact name="org.eclipse.ecf.provider" type="bundle"/>
	<artifact name="org.eclipse.ecf.remoteservice" type="bundle"/>
	<artifact name="org.eclipse.ecf.provider.remoteservice" type="bundle"></artifact>
	<artifact name="cn.com.gei.krp.remoteservice" type="bundle"/>
	<artifact name="org.chen.test.service" type="bundle"></artifact>
	<artifact name="org.chen.test" type="bundle"></artifact>
</plan>

eclispe ecf 关于 eclipse ecf 项目的说明 立即下载

相关推荐

org.eclipse.ecf.sdk_3.13.3.v20161204-0033

Eclipse-ECF 协同编程插件 Eclipse Communication Framework Project About the ECF Project ECF is a set of frameworks for building communications into applications and services. It provides a lightweight, modular, transport-independent, fully-compliant implementation of the OSGi Remote Services standard. See the ECF Wiki for examples, tutorials, other documentation, as well as plans for future releases. To contribute or find out what's going on right now, please join the ecf-dev mailing list.

ECF简介

Eclipse Communication Framework (ECF) 是一个能够在Eclipse平台上建立交流应用的项目。这个Framework为human-to-human, human-to-plugin,以及plugin-to-plugin信息传送通信以及协作,提供一套安全可靠的同步和异步api。 ECF是为下列三类plugin开发者准备的: 1. 开发通信交流的...

akalius的专栏 3872

OSGI.基于ECF的分布式服务开发指南

OSGI.基于ECF的分布式服务开发指南

Eclipse-ECF 感受奇妙的协同编程之旅

很久就对协同工作模式感兴趣,也是在前年,发现eclipse有个开源项目叫cola, 它可以提供令人感受奇妙的协同编程模式,但是当时这个项目还不成熟,处于试验阶段,想体验下协同编程需要很复杂的配置,如今这个项目已经成熟了,可以很轻松的让我们体验协同编程的奇妙之处。(若出现图片过大无法显示完全可在firefox或谷歌浏览器下观看) ( 首先用一篇视屏介绍下什么是协同编程(http://www.56.c...

276

ECF工具

NULL 博文链接:https://zhjgrace.iteye.com/blog/1139585

基于非对称纳什谈判的多微网电能共享运行优化策略(Matlab代码实现)

基于非对称纳什谈判的多微网电能共享运行优化策略(Matlab代码实现)内容概要:本文档标题为《Plecs全桥LLC谐振变换器仿真模型.txt》,但实际上内容并未围绕Plecs或全桥LLC谐振变换器展开详细论述,而是罗列了大量基于Matlab/Simulink和Python的科研仿真项目标题及相关技术方向,涵盖电力系统、无人机控制、微电网优化、路径规划、状态估计、信号处理、电动汽车调度、电力电子变换器等多个领域。其中包括多种优化算法(如粒子群、遗传算法、NSGA-II)、控制策略(如PID、MPC、滑模控制)、仿真建模(如LLC谐振变换器、DAB变换器、PWM整流器)以及具体应用场景的研究实现。尽管提及“隔离型全桥LLC谐振变换器建模及参数设计资料”,但全文缺乏对该主题的具体描述、模型细节或仿真分析,仅作为条目之一出现。因此,该文档实质是一份科研项目资源清单或代码合集目录,而非针对某一主题的深入文章。; 适合人群:具备一定Matlab/Simulink或Python编程基础,从事电气工程、自动化、控制科学、电力电子、新能源系统等相关领域的研究生、科研人员及工程技术人员。; 使用场景及目标:①为科研工作者提供丰富的课题参考与复现资源,涵盖优化调度、控制系统设计、电力电子仿真等方向;②辅助完成硕士/博士论文、期刊论文复现、课程设计或项目开发,提升研究效率与创新性;③通过已有模型和代码快速搭建仿真平台,聚焦算法改进与性能优化。; 阅读建议:此文档应作为科研资源索引使用,读者可根据自身研究方向筛选相关条目,结合配套代码与参考资料进行深入学习与实践。对于希望研究全桥LLC谐振变换器的用户,需注意本文档未提供完整内容,建议查找标注的“仿真+设计报告+计算书”等附件资源以获取详细信息。

域控制器安装完成没有_tcp_udp_猴哥私房菜-座舱域控制器(二):一颗SoC,多个OS, 功能安全...

一: 需求在前一章,简单介绍了汽车EE架构的未来架构,那是一种基于中央计算(central computing)的架构。但是往往前途是美好的,道路是曲折的。目前大多数车厂,包括Tesla在内,都还在域控制器阶段,即:集成了某些强相关的ECU成一个DCU。很多车厂落后的原因,主要是软件能力的落后,而非硬件层面的落后。如果说硬件是“躯体”, 那么 软件就是“灵魂”。(Tips: 呵呵,在写诗呢!此处要...

weixin_39523280的博客 338

【驱动适配】高通sa522平台tac5x1x驱动适配全指南

本手册详细介绍了TAC5301-Q1音频编解码器在高通sa525平台Linux系统下的驱动适配流程。主要内容包括:1)TAC5301-Q1核心特性(车载级音频Codec、关键接口和功能);2)驱动适配依赖(高通声卡驱动、ALSA SoC框架等);3)I2S协议原理及主从模式说明;4)硬件准备与检查要点;5)完整的驱动移植步骤(代码移植、Kconfig/Makefile修改、设备树配置)。该手册适用于嵌入式音频开发工程师快速完成TAC5301-Q1芯片的驱动移植与验证工作。

嵌入式博哥的博客 304

Virgo:Transparent Polynomial Delegation and Its Applications to Zero Knowledge Proof学习笔记

1. 引言 Jiaheng Zhang等人2020年论文《Transparent Polynomial Delegation and Its Applications to Zero Knowledge Proof》发表于 IEEE Symposium on Security and Privacy 2020。

mutourend2010@gmail.com 1842

华为交换机链路聚合对接思科交换机链路聚合故障

2台华为交换机采用堆叠方式与思科交换机之间使用链路聚合,华为交换机与cisco交换机链路捆绑接口频繁UP/DOWN,业务中断。

网络工程师日常的博客 2119

Eclipse是一款跨平台开源集成开发环境(IDE)。最初主要用来Java语言开发,目前亦有人通过插件使其作为C++、Python、PHP等其他语言的开发工具。

是一款(IDE)。最初主要用来语言开发,目前亦有人通过使其作为等其他语言的开发工具。Windows 10环境下的Eclipse 4.9Eclipse的本身只是一个框架平台,但是众多的支持,使得Eclipse拥有較佳的灵活性,所以许多软件开发商以Eclipse为框架开发自己的IDE。

weixin_40191861的博客 1315

子网划分详解

还不会子网划分?看这篇就够了,保姆级教程

m0_47584619的博客 6093

Eclipse下载安装配置(下载、外观、优化)

下载篇 首先,官网Download https://www.eclipse.org/downloads   Eclipse IDE for Java Developers    #经典版 Eclipse IDE for Java EE developers #JavaEE版 凭个人爱好选择。   外观篇: 外框区 Window&gt;General&gt;Appearan...

大龄实习生园地 498

WPS Office 2019 For Linux二次开发全流程:从源码下载到Demo运行

本文详细介绍了在Linux环境下进行WPS Office 2019 C++二次开发的全流程,涵盖从开发环境准备、源码获取、核心依赖(Qt与WPS)安装配置,到最终编译运行官方Demo的完整步骤。文章重点解析了环境搭建中的常见问题与解决方案,旨在帮助开发者快速上手WPS二次开发。

weixin_29001423的博客 390

超声波 vs 红外 vs 激光雷达:扫地机器人避障传感器选型指南(实测对比)

本文深入对比了扫地机器人三种主流避障传感器——超声波、红外与激光雷达的核心原理与实测表现。文章基于成本、精度、环境适应性等关键指标,提供了清晰的选型决策树和典型场景配置方案,旨在帮助开发者与爱好者根据项目需求与预算,构建高效可靠的机器人避障系统。

h0i1j2k3l的博客 690

Virgo与Maven整合开发环境搭建(四)

4.web                      接下来是这次demo的另一个bundle.而且是个拥有spring-mvc能力的web-bundle(WAB).先来看一下结构                        首先来看一下web.xml Xml代码   xml version="1.0" encoding="UTF-8"?>   web-

haylee的专栏 1605

基于Arduino与脑电模块的意念控制LED灯环实现

脑机接口(BCI)技术通过采集和处理脑电信号,实现人脑与外部设备的直接交互。其核心原理是利用传感器捕捉大脑活动产生的微弱电信号,经过放大、滤波和特征提取,转换为可识别的指令。这项技术在医疗康复、神经反馈训练和人机交互等领域具有重要价值。本文聚焦于一个具体的工程实践:使用消费级NeuroSky TGAM模块采集专注度与放松度数据,通过Arduino平台解析信号,并驱动WS2812B LED灯环实现实时可视化反馈。项目涵盖了硬件选型、电路搭建、数据解析和光效映射等关键环节,为脑机接口入门和嵌入式开发提供了完整的

weixin_28721917的博客 280

解析bt种子下载 java_使用Java解析Torrent文件(BT种子),基于使用Eclipse ECF中的org.eclipse.bittorrent方案...

在Java中,当需要解析BT种子文件(Torrent)时,一种方案是使用Eclipse ECF中的org.eclipse.bittorrent。Torrent是一个使用BEncoding的Dictionary,具体可以查看BEP的相关文档(BEP0003),在此不再赘述。org.eclipse.bittorrent的使用非常简单,但由于其出现的年代已经比较久远,因此其缺点之一就在于解析的是一个To...

weixin_31908803的博客 3603

CEEMDAN算法及其应用

本博文主要介绍CEEMDAN算法的原理及其在信号去噪方面的应用

总结论文中的算法并给出论文的复现代码 6万+

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

Virgo与Maven整合开发环境搭建(一)

        OSGI的技术渐渐被采用到互联网应用的开发中.这里不讨论OSGI,即我们熟悉的Equinox,Felix是如何进.Java Web应用开发,这里讨论的是一个目前看来较新的方案——Eclipse Virgo.         Eclipse Virgo对OSGI进行了再次封装,底层使用的是Equinox.有朋友知道,其实Eclipse Virgo的OSGI部分是Spring-D...

兜里的米 279

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

eclipse插件开发[用Eclipse RCP & ECF 实现 Google Talk客户端]

原文见: http://www.eclipseworld.org/bbs/read.php?tid=708大家用过Google Talk吗?它是Google推出的一个IM,通讯协议是我们熟悉的Jabber协议。我通过这篇文章给大家简单介绍一下如何利用ECF实现一个Google Talk客户端。源代码下载:http://www.blogjava.net/Files/reloadcn/Chat.rar

yq76034150的专栏 1629

IDEA的使用指南

IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.

ssm框架搭建

这个是一个在idea上成功跑起来的ssm框架项目,保存在这里方便以后使用直接下载

上一篇: FordFulkerson算法求网络最大流(java)
下一篇: hive功能简介
JavaMan_chen
博客等级 码龄19年 329粉丝 82原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值