资源简介
opnet adov的源代码,解释清楚,思路清晰,适于初学者

代码片段和文件信息
/* Process model C form file: billard_mobility.pr.c */
/* Portions of this file copyright 1992-2000 by OPNET Technologies Inc. */
/* This variable carries the header into the object file */
static const char billard_mobility_pr_c [] = “MIL_3_Tfile_Hdr_ 70B 30A op_runsim 7 3B66F6A8 3B66F6A8 1 manet.antd.nist.gov lmiller 0 0 none none 0 0 none 0 0 0 0 0 0 “;
#include
/* OPNET system definitions */
#include
#if defined (__cplusplus)
extern “C“ {
#endif
FSM_EXT_DECS
#if defined (__cplusplus)
} /* end of ‘extern “C“‘ */
#endif
/* Header Block */
///////////////////////////////////////////////////////////////
// BILLARD MOBILITY HEADER BLOCK
//
// Declaration of every constant type library global
// variables... used by the billard nobility process
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
//////////////////////// INCLUDE //////////////////////////////
///////////////////////////////////////////////////////////////
#include
///////////////////////////////////////////////////////////////
///////////////// CONSTANTS DEFINITION ////////////////////////
///////////////////////////////////////////////////////////////
// constant PI for trigonometry
#define PI 3.141592654
///////////////////////////////////////////////////////////////
///////////// TRANSITION MACROS DEFINITION ////////////////////
///////////////////////////////////////////////////////////////
#define MOVE ( op_intrpt_type () == OPC_INTRPT_SELF )
///////////////////////////////////////////////////////////////
////////////// GLOBAL VARIABLES DECLARATION ///////////////////
///////////////////////////////////////////////////////////////
// variable that define the size of the grid on which the nodes are moving
double XMAX;
double XMIN;
double YMIN;
double YMAX;
// variable which define the node mobilty (speed = STEP_DIST/ POS_TIMER)
double POS_TIMER;
double STEP_DIST;
/* End of Header Block */
#if !defined (VOSD_NO_FIN)
#undef BIN
#undef BOUT
#define BIN FIN_LOCAL_FIELD(last_line_passed) = __LINE__ - _block_origin;
#define BOUT BIN
#define BINIT FIN_LOCAL_FIELD(last_line_passed) = 0; _block_origin = __LINE__;
#else
#define BINIT
#endif /* #if !defined (VOSD_NO_FIN) */
/* State variable definitions */
typedef struct
{
/* Internal state tracking for FSM */
FSM_SYS_STATE
/* State Variables */
Distribution * one;
Objid my_node_id;
Objid my_process_id;
double angle;
Objid
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 12322 2001-07-31 14:14 billard_mobility.pr.c
文件 8376 2000-12-07 11:49 billard_mobility.pr.m
文件 27244 2001-07-31 14:14 billard_mobility.s1.pr.o
文件 16067 2000-12-07 11:49 complex_intrpt.ex.c
文件 3954 2000-12-07 11:49 complex_intrpt.h
文件 5612 2001-07-31 14:14 complex_intrpt.s1.ex.o
文件 572 2000-12-07 11:49 Dsr_Ack_Ici.ic.m
文件 5711 2000-12-07 11:49 Dsr_Data.pk.m
文件 543 2000-12-07 11:49 Dsr_Dest_Ici.ic.m
文件 6065 2000-12-07 11:49 Dsr_Error.pk.m
文件 572 2000-12-07 11:49 Dsr_Error_Ici.ic.m
文件 15888 2001-07-31 14:13 dsr_interface.pr.c
文件 11385 2000-12-07 11:49 dsr_interface.pr.m
文件 35952 2001-07-31 14:14 dsr_interface.s1.pr.o
文件 15506 2001-04-25 15:27 dsr_node.nd.m
文件 6715 2000-12-07 11:49 Dsr_Reply.pk.m
文件 5873 2000-12-07 11:49 Dsr_Request.pk.m
文件 130934 2001-07-31 14:14 dsr_routing_la
文件 133887 2001-07-31 14:12 dsr_routing_la
文件 140140 2001-07-31 14:14 dsr_routing_la
文件 6681 2001-07-31 14:13 dsr_sink.pr.c
文件 3463 2000-12-07 12:00 dsr_sink.pr.m
文件 16548 2001-07-31 14:13 dsr_sink.s1.pr.o
文件 14932 2000-12-07 12:00 dsr_support.ex.c
文件 3116 2000-12-07 12:00 dsr_support.h
文件 10508 2001-07-31 14:14 dsr_support.s1.ex.o
文件 926 2000-12-07 11:49 Dsr_Upper_Data.pk.m
文件 543 2000-12-07 11:49 Dsr_Wlan_Dest_Ici.ic.m
文件 13577 2000-12-07 12:00 fifo.ex.c
文件 3973 2000-12-07 12:00 fifo.h
文件 3616 2001-07-31 14:14 fifo.s1.ex.o
............此处省略32个文件信息
- 上一篇:计算机网络课程设计 小区局域网
- 下一篇:二维数据集788个点
相关资源
- AODV协议分析
- DYMO路由_OPNET
- opnet中LTE模型代码
- 北京怡嘉行科技有限公司opnet英文讲座
- opnet 通信仿真
- opent网络仿真教程--陈敏
- AODV的NS2仿真
- opnet使用教程(详细)
- opnet教程-陈敏
- opnet仿真案例全
- Unlocking the Power of OPNET Modeler
- 电子科技大学opnet培训资料
- opnet路由协议仿真
- OPNET 用户指南 中文版
- OPNETAdhoc实验简介.pdf
- 基于Aloha的RFID系统防碰撞算法仿真与
- AODV协议介绍,比较优缺点等,希望对
- opnet14.5使用说明 帮助文档大全
- opnet14.5_modeler_tutorial_pdfs
- 这是我做的一个基于NS2的ADHOC网络路由
- AODV路由协议NS2仿真
- opnet仿真zigbee
- opnet网络仿真教程陈敏
- TCP仿真(OPNET网络仿真实验).
- 基于NS2的Ad Hoc网络AODV路由协议仿真
- 无线Ad+Hoc网络AODV路由协议的研究与改
- OPNET_Modeling Wireless仿真
- 一个OPNET仿真802.11报告,很详尽
- OPNET网络仿真教程
- opnet 14.5安装包+licence压缩包02
评论
共有 条评论