opnet14.5学习总结三

本文是OPNET14.5学习的第三部分,重点讨论了Proto-C代码的位置、变量声明、控制权转移、初始化状态的作用、强制与非强制状态的区别、条件与默认条件、帮助文档的利用、进程接口以及模块属性提升和统计量声明。通过理解这些概念,有助于深入掌握OPNET的仿真逻辑和流程。
摘要由CSDN通过智能技术生成

opnet14.5学习总结三

看懂的问题要总结
存疑的地方要记录

计包模型的总结。

1.那些地方可以写c代码

The three primary places to use Proto-C are as follows:

• Enter Executive—code that is executed when the module moves into a state
• Exit Executive—code that is executed when the module leaves a state
• Transition Executive—code that is executed in response to a specific event

疑问:转移的过程中会执行代码,然后到达一个新的状态。紧接着执行新状态的入口代码。为什么不把新状态的入口代码放在前一个状态的转移过程中呢?出口代码何时执行?

2.那些地方可以申明变量
临时变量、状态变量、代码中的变量

You can declare variables in three places:

  • Variables declared in the temporary variables block do not retain their values between invocations of the FSM.
  • Variables declared in the state variables block retain their values from invocation to invocation.
  • Variables declared inside a state’s executive are
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值