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>

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工具

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

ECF简介

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

akalius的专栏 3872

eclispe ecf

关于 eclipse ecf 项目的说明

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

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

277

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

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

IAR调试CC1310的错误:Fatal error:Failed to connect to the XDS emlulator (Error -241 @ 0x0:)

从simplelink_cc13x0_sdk_2_10_00_36导入collector工程后,rebuild后进行debug,出现了如图错误:Fatal error:Failed to connect to the XDS emlulator (connect ICEPick)...(Error -241 @ 0x0)A router subpath could not be accessed....

qq_40417648的博客 6233

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

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

weixin_39523280的博客 338

【语音识别算法】深度学习语音识别算法与传统语音识别算法的区别、对比及联系

深度学习语音识别算法与传统语音识别算法在理论基础、实现方式、性能表现等方面存在显著区别,同时也有一些联系。下面将从几个方面详细比较这两种方法,并给出应用实例和代码示例。

weixin_51306394的博客 2576

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 1844

Sparse4Dv3

instance_feature也设置为nn.Parameter。修正分支2*(linear->relu->linear->relu->layernorm)->linear->scale,分类分枝2*(linear->relu->layernorm)->linear(256,9),质量评估分枝2*(linear->relu->layernorm)->linear(256,2)。每组两类instance,1是加上范围(-x,x)内均匀分布噪声,2是加上(-2x,-x)U(x,2x)范围内均匀分布噪声。

yuanl15的博客 1358

别再死记硬背公式了!用ADS手把手教你仿真一个4GHz镜像抑制混频器(附完整工程文件)

本文详细介绍了使用Keysight ADS软件设计和仿真4GHz镜像抑制混频器的完整流程。从理论分析到实际工程实现,涵盖分支线耦合器设计、二极管建模、噪声系数仿真及性能优化等关键步骤,帮助工程师摆脱公式死记硬背,掌握实用的射频电路设计技能。附完整工程文件,可直接应用于实际项目开发。

weixin_28683391的博客 501

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

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

weixin_40191861的博客 1334

网络系统实现技术之IPX与SPX

IPX/SPXNovell NetWare网络Novell公司为适应网络发展,将主机网络转换为PC网络,开发了Novell NetWare网络系统。该系统中基于客户机/服务器模式。以普通PC机做为客户机,以性能强大的服务器做为服务器,为客户机提供文件服务、数据库服务及其他服务。与前面的SNA模型一样,Novell NetWare也早于OSI模型,所以不能与OSI模型严格对应,但也有很明

成片的大树 9173

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

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

大龄实习生园地 499

windchill安装搭建(保姆式)

保姆式搭建windchill 材料准备 Vmware工具,用来创建和打开虚拟机的工具 安装系统的镜像文件 数据库安装文件,这里是Oracle数据库 Windchill的安装包 Vmware工具,用来安装和打开虚拟机的软件 Windowsserver2008的镜像工具,用来安装虚拟机环境的系统,如果你有win2007或win2010的也可以,在做虚拟机时,需要先安装系统。 Oracle数据库安装包 Windchill11M030的安装包 (安装包如有需要可以私信邮箱发送) 虚拟机安装 安装虚拟机VMware

tr1294937662的博客 6233

【WRF-Urban】增加动态空间热排放数据以替换人为热排放参数

增加动态空间热排放数据以替换人为热排放参数

WW、forever的博客 1046

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

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

haylee的专栏 1606

深入探讨 SAP ERP 物料主数据中的 Valuation Type

在 SAP ERP 系统中,是用于区分同一种物料在不同条件下的估价方法。物料的估价可以因产地、质量等级、供应商或批次的不同而有所差异。通过为物料设置不同的估价类别,使企业能够对这些差异进行有效管理。为了实现更细致的物料成本核算,SAP 系统通过(分批估价)功能允许为同一物料设置多个估价类型。这种方法特别适合那些在来源、质量、或其他参数上存在显著差异的物料。是 SAP ERP 和 SAP S/4HANA 中物料主数据的核心组成部分,为企业提供了灵活的成本管理工具。

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 1413

解析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的博客 3604

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

IDEA的使用指南

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

基于OSGi的Virgo Server最简单Spring web实例

基于OSGi的Virgo Server最简单Spring web实例 一:开发工具下载与环境搭建 1. 下载并安装JDK6u30版本,下载地址如下: http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downlo ads-javase6-419409.ht...

web开发 301

STM32F407中文手册

STM32f407中文手册 本参考手册面向应用开发人员,提供有关使用 STM32F405xx/07xx、STM32F415xx/17xx、 STM32F42xxx 和 STM32F43xxx 微控制器存储器与外设的完整信息。STM32F405xx/07xx、STM32F415xx/17xx、STM32F42xxx 和 STM32F43xxx 构成一个微 控制器系列,各产品具有不同的存储器大小、封装和外设。有关订购信息以及器件的机械与电气特性,请参见数据手册。有关 ARM Cortex™-M4F 内核的信息,请参见《Cortex™-M4F 技术参考手册》。

virgo 简介

简介 Virgo项目Web服务器是EclipseRT项目的一部分,是一个完全模块化的Java运行时。Virgo自身就是设计为在标准OSGi框架实现(Equinox)之上的一个OSGi bundle集合。Virgo可以运行企业级Java应用以及基于Spring(Spring - powered)的应用,具有很强的灵活性和可靠性,它提供了一个支持企业级Java应用开发、部署和服务的简单而强大

gadbee5的专栏 3966

温度PID控制PLC程序

温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值

ECF

背景 最简单地说,ECF 项目的目的就是提供一个跨协议的 API。ECF 将为四类支持者创造价值: 通信供应者 谁 —— 为基于 Eclipse 的应用程序和插件实现新的和现有的通信供应者(Yahoo、AIM 等)的插件开发人员。价值 —— 互操作性。开发人员和用户允许他们的应用程序跨协议地协同工作。组件开发人员 谁 —— 实现通用组件级特性(例如,文件共享或白板共享)的插件开发人员。价值 —— ...

Java企业应用 531
上一篇: 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、付费专栏及课程。

余额充值
⌂ 换网址