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