📄 bursty_source.header block
字号:
/* Include files. */
#include "oms_dist_support.h"
#include <math.h>
/* Define constants used in the process model. */
#define OFF_TO_ON 10
#define ON_TO_ON 20
#define ON_TO_OFF 30
/* Define a small value (= 1 psec), which will be used */
/* to recover from double arithmetic precision losts */
/* while doing time related precision sensitive */
/* computations. */
#define PRECISION_RECOVERY 0.000000000001
/* State transition macro definitions. */
#define INACTIVE_TO_ACTIVE (intrpt_type == OPC_INTRPT_SELF && intrpt_code == OFF_TO_ON)
#define REMAIN_ACTIVE (intrpt_type == OPC_INTRPT_SELF && intrpt_code == ON_TO_ON)
#define ACTIVE_TO_INACTIVE (intrpt_type == OPC_INTRPT_SELF && intrpt_code == ON_TO_OFF)
/* Function Declarations. */
static void bursty_source_sv_init ();
/*
OmsT_Dist_Handle on_state_dist_handle;
OmsT_Dist_Handle off_state_dist_handle;
OmsT_Dist_Handle intarrvl_time_dist_handle;
OmsT_Dist_Handle packet_size_dist_handle; */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -