opnet核心函数
文章平均质量分 59
柳木枝
这个作者很懒,什么都没留下…
展开
-
opnet之Subqueue Package
op_subq_empty() This KP must only be invoked within the context of a process running on a queue module (or from a function which is directly or indirectly invoked by a queue process); invoking them f原创 2016-12-26 00:04:39 · 765 阅读 · 0 评论 -
opnet之Interrupt Package
lmz: 中断是传递给进程的。 每一个节点内的进程都可以给自己/他人预设中断,也可以删除中断。 比如: op_intrpt_clear_self()Cancels all self interrupts pending for the invoking process. 只能删除自己的中断。op_intrpt_schedule_self() In cases where a s原创 2016-12-26 01:18:49 · 441 阅读 · 0 评论 -
opnet之Queue Package
op_q_empty() A queue is empty if none of its subqueues contain packets. A queue is initially empty, since all of its subqueues are empty. Packets are added to one or more subqueues within a queue via原创 2016-12-26 01:57:16 · 620 阅读 · 0 评论 -
opnet之Stream Package
lmz: 输入流中可以容纳多个包。 容量是多少呢?可以认为设置吗? 既然包流中可以容纳包,子列中也可以容纳包,为什么多弄出一个子列呢? lmz: 有两种方法可以将输入流中的包删除: op_pk_get() 一次只移除一个 op_strm_flush() 一次移除所有 op_strm_pksize() Obtains the number原创 2016-12-26 01:49:54 · 384 阅读 · 0 评论 -
opnet之Distribution Package
op_dist_load()Syntax op_dist_load (dist_name, dist_arg0, dist_arg1) Distributions are specified by name, and can be either predefined analytical distributions, user-defined PDF models prepared using原创 2016-12-26 11:35:12 · 749 阅读 · 0 评论 -
opnet之General Sub-Package
op_pk_create_fmt()Syntax op_pk_create_fmt (format_name) This value is the name of a packet format created using the Packet Format Editor. The packet format specified must be located in the model d原创 2016-12-26 12:20:46 · 355 阅读 · 0 评论 -
opnet之Statistic Package
op_stat_reg()op_stat_reg("Http.Page Response Time (sec)", OPC_STAT_INDEX_NONE, OPC_STAT_GLOBAL); lmz: 将在进程中申明的全局统计量或者局部统计量注册为一个统计句柄。 op_stat_write()op_stat_write (pk_size_shandle, (double) bu原创 2016-12-26 12:32:48 · 422 阅读 · 0 评论 -
opnet之Event Package
op_ev_cancel()Syntax op_ev_cancel (evhandle) lmz: 删除之前预设的一个终端。 参数是一个事件句柄。 有一个问题:句柄一般都是SV,SV的作用域是在一个module之内,或者说一个节点之内。 那么,即使两个节点内的事件句柄的名字相同,仿真核心也是可以区分的。 op_ev_next_local() lmz: 仿真核心原创 2016-12-26 01:32:56 · 400 阅读 · 0 评论 -
opnet之Internal Model Access
op_ima_obj_attr_get()Syntax op_ima_obj_attr_get (objid, attr_name, value_ptr) lmz: 指针类型是空。 /* Obtain the process name (the "process model" attribute of the module. */ /* Assumes proc_model_name i原创 2016-12-26 00:52:34 · 401 阅读 · 0 评论 -
opnet之Identification Package
lmz: op_id_from_userid()与op_id_from_name()既然都可以获取想要的对象id,为什么提供两个函数呢? 因为user ID是可以自定义的int。我们可以自定义对象的user ID为连续整数,方便循环。 op_id_self() lmz: 这个核心函数的执行背景只能是processor或者queue。 /* initially the serve原创 2016-12-26 00:29:27 · 567 阅读 · 0 评论