USA and world news

Myagent/myagent News

Introduction to Asynchronous Agents Library - Parallel Programming ...

2009-06-03
MyAgent myagent();. myagent is now in the 'agent_created' state. myagent.start();. Calling start() moves the agent to 'agent_runnable'. agent::wait(&myagent);. Wait blocks until myagent reaches one of the final states (agent_cancelled, ...

NS2之添加新代理- 傻丫的静静时光- 博客大巴

2010-07-06
give a command to MyAgent:$myagent call-my-priv-func->可以有多个命令,就看命令的参数个数,并且通过比较[argv 1]来判断是执行什么命令. 3、总结:如何添加一个新类. 要往NS2中添加自己的模块,至少要实现两个类: ...

OTCL 和c++互联的例子_ynp130y的空间_百度空间

2009-11-05
MyAgent::MyAgent() : Agent(PT_UDP) { bind("my_var1_otcl", &my_var1); bind("my_var2_otcl", &my_var2); bind("my_var3_otcl", &my_var3); } /*Note that whenever you export a C++ variable, it is recommended that you also set the default value ...

ns2中Otcl与C++类之间的linkage--天蝎之巢

2006-07-20
MyAgent::MyAgent() : Agent(PT_UDP) { bind("my_var1_otcl", &my_var1); bind("my_var2_otcl", &my_var2); }. int MyAgent::command(int argc, const char*const* argv) { if(argc == 2) { if(strcmp(argv[1], "call-my-priv-func") == 0) { ...

NS by Example 笔记(10)OTcl Linkage - 飞奔的火鸟- JavaEye技术网站

2009-01-17
... static class MyAgentClass : public TclClass { public: MyAgentClass() : TclClass("Agent/MyAgentOtcl") {} TclObject* create(int, const char*const*) { return(new MyAgent()); } } class_my_agent; MyAgent::MyAgent() : Agent(PT_UDP) ...