air program auto update.

Adobe AIR 自动更新机制
本文介绍了Adobe AIR应用如何实现自动更新功能。通过创建本地设置文件、在线指向文件及使用Adobe Labs提供的SDK,开发者可以轻松地为自己的AIR应用程序添加自动更新特性。

Air Application Auto-Update

July 30th, 2008

There is a SDK at Adobe Labs with a beta of Air Application Updates. There are 2 ways, using the UI update and the headerless update. The headerless allows you to make updates and checks without the end-user knowing the checks.

Lets make a small example.

Short Description:
1.) Local AIR Application read local config file.
2.) The config file points to external (online) config file.
3.) Online Config file holds online released update and path to file.
4.) If file is never, download and upgrade

air-updater

1.) Download the SDK
1.1) Download the files from Adobe Labs AIR Update Framework .
1.2) Put the 2 *.swc file into your app-folder/sdks/3.0.0/libs/air

2.) Create a Project
2.1) Well, you know how to create a Flex AIR Project =)

3.) The Local Settings File
3.1) Create an XML file in the project (mine is config.xml)
3.2) Change the url path where the online pointer file is.
3.3) If using the GUI version of update change the settings in defaultUI

<configuration xmlns="http://ns.adobe.com/air/framework/update/configuration/1.0">
	<url>http://www.undefined-type.com/update-buxfer.xml</url>
	<delay>1</delay>
	<defaultUI>
		<dialog name="checkForUpdate" visible="true" />
		<dialog name="downloadUpdate" visible="true" />
		<dialog name="downloadProgress" visible="true" />
		<dialog name="installUpdate" visible="true" />
		<dialog name="fileUpdate" visible="true" />
		<dialog name="unexpectedError" visible="true" />
	</defaultUI>
</configuration>

4.) Create the Online Pointer File
4.1) Create the XML file, (mines called update-buxfer.xml) this is so that I put all my pointer xml file at 1 place on my server.
4.2) Fill the file with example code.

<update xmlns="http://ns.adobe.com/air/framework/update/description/1.0">
  <version>1.4</version>
  <url>http://undefined-type.com/apps/buxfer_1.4.air</url>
  <description>
           <![CDATA[
               This update enables automatic updates in the future.
           ]]>
   </description>
</update>

5.) The actual file
5.1) Don’t forget to put the actual new *.air file on the server where you are pointing =)
5.2) When building make sure as well to change the “version” in the application xml file.

6.) The Code
6.1) When you want to check the update just add this code.

import
 air.update
.events
.UpdateEvent
;
import
 air.update
.ApplicationUpdaterUI
;
 
private
 var
 updater : ApplicationUpdaterUI;
private
 function
 check(
)
:void

{

	var
 confFile : File = File.applicationDirectory
.resolvePath
(
"config-template.xml"
)
;
	updater = new
 ApplicationUpdaterUI(
)
;
	updater.configurationFile
 = confFile;
	updater.addEventListener
(
UpdateEvent.INITIALIZED
, onInit)
;
	updater.initialize
(
)
;
}

 
private
 function
 onInit(
event:UpdateEvent)
:void

{

	updater.checkNow
(
)
;
}
Usage: VisualCppRedist_AIO_x86_x64.exe [switches] All switches are optional, case-sensitive. /y Passive mode, shows progress. *All* Runtime packages are installed. /ai Quiet mode, no output shown. *All* Runtime packages are installed. /aiA Quiet mode. *All* Runtime packages are installed, and hide ARP entries. /ai5 Quiet mode. *Only* 2005 package is installed. /ai8 Quiet mode. *Only* 2008 package is installed. /aiX Quiet mode. *Only* 2010 package is installed. /ai2 Quiet mode. *Only* 2012 package is installed. /ai3 Quiet mode. *Only* 2013 package is installed. /ai7 Quiet mode. *Only* 2022 package is installed. /ai9 Quiet mode. *Only* 2026 package is installed for Win 10/11. /aiT Quiet mode. *Only* VSTOR 2010 package is installed. /aiE Quiet mode. *Only* Extra VB/C package is installed. /aiB Quiet mode. *Only* Extra VB package is installed. /aiC Quiet mode. *Only* Extra VC package is installed. /aiV Quiet mode. *Only* VC++ packages are installed. /aiM Manual Install mode, shows installation script with prompt. /aiR Auto Uninstall mode, remove all detected runtimes. /aiD Debug mode, create VCpp_debug.log without installing/uninstalling any package. /aiP Manual Hide or Show Runtimes entries in Add/Remove Programs panel. /ai1 Update mode. Only already installed packages are updated. /aiF Repair mode. Only already installed packages are reinstalled or updated. /gm2 Optional switch to disable extraction dialog for all other switches. /sfxlang: Set the program display language, if possible. Example: /sfxlang:1031 /h | /? Display this help. 翻译成我能看懂的中文简体语言
11-06
提供了基于BP(Back Propagation)神经网络结合PID(比例-积分-微分)控制策略的Simulink仿真模型。该模型旨在实现对杨艺所著论文《基于S函数的BP神经网络PID控制器及Simulink仿真》中的理论进行实践验证。在Matlab 2016b环境下开发,经过测试,确保能够正常运行,适合学习和研究神经网络在控制系统中的应用。 特点 集成BP神经网络:模型中集成了BP神经网络用于提升PID控制器的性能,使之能更好地适应复杂控制环境。 PID控制优化:利用神经网络的自学习能力,对传统的PID控制算法进行了智能调整,提高控制精度和稳定性。 S函数应用:展示了如何在Simulink中通过S函数嵌入MATLAB代码,实现BP神经网络的定制化逻辑。 兼容性说明:虽然开发于Matlab 2016b,但理论上兼容后续版本,可能会需要调整少量配置以适配不同版本的Matlab。 使用指南 环境要求:确保你的电脑上安装有Matlab 2016b或更高版本。 模型加载: 下载本仓库到本地。 在Matlab中打开.slx文件。 运行仿真: 调整模型参数前,请先熟悉各模块功能和输入输出设置。 运行整个模型,观察控制效果。 参数调整: 用户可以自由调节神经网络的层数、节点数以及PID控制器的参数,探索不同的控制性能。 学习和修改: 通过阅读模型中的注释和查阅相关文献,加深对BP神经网络与PID控制结合的理解。 如需修改S函数内的MATLAB代码,建议有一定的MATLAB编程基础。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值