Flex Viewer 开发教程(7)Widget与服务器交互

本文概述了Flex应用程序与服务器交互的各种技术,包括HTTP、SOAP/WSDL、AMF、RTMP和JSON等,详细比较了它们的应用场景、优势及支持的服务器类型。

本小节将不涉及具体的代码细节,因为Widget与服务器的交互不会因为Flex Viewer的架构而有所不同,了解了Flex程序如何与服务器端进行交互,直接应用到Widget中即可。下表是Flex与服务器端进行交互可用的技术,具体细节可参考《Flex 4 in Action》中的第15章。

Communication

Server Support

Application

Benefits

HTTP

(includes REST and RPC hybrids)

  -All

Simple Widget-based applications; speed and real-time UI updates aren’t required.

Easy implementation via the HTTPService object; RPC hybrid protocols can be invoked using RemoteObject.

SOAP/WSDL

  -All

Data aggregation from external web services.

Easy implementation; pull data from multiple outside resources regardless of platform.

AML

  -BlazeDS&LiveCycle Data Services(LCDS):Java,

  -.NETZend: PHP

  -AMFPHP: PHP

  -WebOrb: .NET, Ruby, PHP

Approaching enterprise level; speed is important; data is usually pulled from server by polling.

Binary data compression makes communications 12 times faster; strong data typing; multiplatform support.

RTMP

  -LiveCycle Data Services(LCDS),

  -Flash Media Server(FMS)

Enterprise level, messaging, instantaneous UI updates; data can be pushed to the client; streaming media content; data intensive RIAs.

Integrates into existing J2EE infrastructure; document management, rapid data transfer, clustering, data tracking, syncing, paging, and conflict resolution.

Flash Remoting

  -Native to ColdFusion

Robust, enterprise platform for client/server Flex communications; native.

Seamless integration with the Flash platform; removes the need for an intermediate code library to do data type mapping and date serialization.

JSON

  -All (JavaScript data objects are serialized and transferred in binary form.)

AIR applications that use AJAX or Flex applications that use the ExternalInterface API.

Easy implementation with the HTTPService object; part of the AS3CorLib library.

内容概要:本文提出了一种计及并网波动约束和储能荷电状态(SOC)的混合储能功率协调控制方法,并提供了完整的Matlab代码实现。该方法针对新能源并网系统中存在的功率波动问题,充分发挥超级电容器动态响应快电池能量密度高的互补优势,通过设计合理的协调控制策略实现两者的功率动态分配。控制算法综合考虑了电网对并网功率波动的安全限值要求以及储能单元荷电状态的实时变化,构建了以平抑功率波动、均衡储能SOC、延长系统寿命为核心的多目标优化机制。文中详细阐述了混合储能系统的数学建模过程、功率分配逻辑设计、控制策略实现流程及仿真验证方案,通过对比实验验证了所提方法在降低并网功率波动幅度、维持储能系统能量平衡、提升电能质量和系统运行稳定性方面的优越性能。; 适合人群:具备一定电力系统分析、新能源并网技术或储能控制系统基础知识的研究生、科研人员及从事相关领域工程开发的技术人员。; 使用场景及目标:①应用于高比例可再生能源接入的微电网或配电网中,实现并网功率的平滑控制;②用于电池-超级电容等混合储能系统的能量管理优化控制研究;③作为Matlab仿真教学案例或科研复现资料,帮助深入理解储能协调控制策略的设计原理实现细节。; 阅读建议:读者应结合所提供的Matlab代码进行仿真实践,重点剖析低通滤波高频补偿相结合的功率分配机制及SOC反馈调节环节的实现逻辑,建议在掌握基本控制理论的基础上,调整参数设置或拓展系统模型以适应不同的应用场景研究需求。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值