資源簡介
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個點
評論
共有 條評論