BPEL4WS1.1学习笔记[3]

Basic Activities

Standard Elements:<source><target> 

 


<invoke>

An asynchronous invocation requires only the input variable of the operation because it does not expect a response as part of the operation.

A synchronous invocation requires both an input variable and an output variable这些属性只在executable processes中有用。WSDL fault 由QName标识,target Namespace of the corresponding portType and the fault name.

一个acitivity可与另一个activity(作为其compensation)关联

 


 

<receive>

business process通过<receive>&<reply>向其partner提供服务。<receive>指定了the partner link it expects to receive from,and the portType & operation that it expects the partner to invoke定义一个variable用来接收message data.

The only way to instantiate a business process is to annotate a <receive>activity with the createInstance attribute set to "yes".

Anonoted<receive> acitivities must be initial activities.

<receive>is a blocking activity

 


 

<reply>

send a response to a request previously accepted through a <receive> activity.Such response仅对同步交互有意义。

An asynchronous response is sent by invoking the corresponding one-way operation on the partner link,可定义一个variable包含message data to be sent in reply.

 


 

<throw>

业务流程显式地发出内部故障信号时,使用<throw>。每个故障需要有一个全局唯一的QName。<throw>活动为故障提供QName,可提供一个variable of data,提供故障的其他信息。Fault Handler可使用such data分析处理fault。

 


 

<wait>

允许business process specifies a delay for a certain period of time or until a certain deadline is reached.

<wait (for  = "duration-expr"|until = "deadline-expr" ) ></wait>

典型的应用是invoke an operation at a certain time(一般是个常数,或依赖流程状态的表达式)

 

 


 

<empty>

When a fault needs to be caught and suppressed.

 


 

Structured Activities

规定了一组活动发生的顺序。

  1. 活动间的一般顺序<sequence><while><switch>
  2. 活动间的并发和同步<flow>
  3. 基于外部时间的不确定的选择<pick>

 


 

<sequence>

一个sequence包含一个或多个按顺序执行的活动,in the order in which they are listed within the <sequence> element.The sequence activity completes when the final activity in the sequence has completed.

 


 

<switch>

由有序的一个或多个条件分支组成<case>可能有<otherwise>分支。选择条件为true的第一个分支并执行其活动。如果都不符合,选<otherwise>。如<otherwise>未显式制定,an otherwise branch with an <empty>活动将被执行

 


<while>

支持repeated performance of a special iterative activity. Until the given Boolean thile condition no longer hold true.


<pick>

等待一组事件中的一个发生,然后执行与发生的事件相关的活动。事件的发生往往是互斥的。如果不止一个事件发生,选最先发生的那个。

<pick>是一组形为event/activity的分支,当pick接收到一个event后,便不再接收其他events。

可能的事件:

  1. 消息的到达——调用进站的单向操作或request/response操作。
  2. alarm based on a timer

case:接收到一个消息而创建流程实例,pick本身的createInstance的值是yes(缺省为no),pick中的event必须为进站消息。

每个<pick>必须包含至少一个onMessage Event.


<flow>

提供并发(concurrency)和同步(synchronization)

如果一个活动的使能条件为false,该活动被跳过。从而终止。

<link>用来表达synchronization dependencies.

<source><target><transitionCondition>source 和 target中都要指定linkName.

links可以跨越结构化活动的边界。

link不能跨越活动<while>,serializable scope,event handler,compensation handler的边界

A->B link是A的outgoing link(出站)

B->A link是A的incoming link(进站)

Y->X X has a synchronization dependency on Y.

每个座位link target的活动都有一个implicit or explicit joinCondition属性与之关联。

要求至少一个incoming link的status为positive.

joinCondition is a Boolean experession

该表达式由Boolean operators & thebpws:getLinkStatus函数来构造。

  1. A的outgoing link的status positive or negative确定某个link的状态,需要求出transition Condition
  2. A->B B is ready to start;  B 的所有incoming links 的status被确定。
  3. 如果1.2条件都true,求B的join condition的值;如果join Condition值为false,bpws:joinFailure抛出,否则activity B is started.

如果一个有多个outgoing links 的活动完成,enable多个target activities such an antivity is often called a "fork activity".


内容概要:本文围绕“基于交流潮流的电力系统多元件N-k故障模型研究”展开,深入探讨了利用Matlab代码实现电力系统在发生多个关键元件同时故障(即N-k故障)情况下的交流潮流计算与故障分析方法。该模型不仅考虑了传统潮流方程的非线性特性,还引入了故障约束条件,能够精确模拟复杂多样的故障场景,如短路、断线等,进而评估电网在极端运行条件下的稳态与动态行为。研究通过构建典型电力系统算例,验证了所提模型在故障筛选、脆弱性识别及系统恢复策略制定方面的有效性,为电力系统安全评估、风险预警和防御体系构建提供了坚实的理论依据和技术支撑。此外,模型具备良好的扩展性,可进一步应用于连锁故障传播分析、恶意攻击模拟等高级安全分析领域。; 适合人群:具备电力系统分析基础理论知识和Matlab编程能力的高校研究生、科研院所研究人员以及电力公司从事电网规划、运行与安全管理的技术人员,特别适用于开展电力系统安全稳定、可靠性评估与应急响应机制研究的专业人士。; 使用场景及目标:①开展电力系统在多重故障条件下的交流潮流仿真,评估系统电压稳定性、线路过载风险及负荷损失程度;②识别电网中的关键薄弱环节与脆弱元件,支撑电网加固改造与防御资源配置;③用于科研项目中的故障场景建模与算法验证,或作为教学案例帮助学生理解复杂故障下的系统响应机制。; 阅读建议:此资源以Matlab代码为核心实现手段,建议读者结合理论推导与代码实现进行对照学习,重点关注故障建模过程中雅可比矩阵的修正方法、故障注入方式及收敛性处理策略,建议在仿真中逐步增加故障数量与复杂度,深入理解N-k故障对系统潮流分布的影响规律,并尝试将其拓展至含新能源接入的现代电力系统场景中进行验证与优化。
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值