LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-16-2013, 08:10 PM   #1
syxcod
LQ Newbie
 
Registered: Apr 2013
Posts: 4

Rep: Reputation: Disabled
Asking for help about inserting new agent in the NS2.31+crcn environment~


In order to realize the simulation, I need to insert new agent in Ns2+crcn environment to add my own method. However, I tried to insert a basic agent to learn the fundmental procedure of inserting the new agent.
The former steps went very well, then, when I run the script with the command: ns-crcn extra_agent.tcl, there showed up a mistake.
The mistake appears below.

wuzhen@wuzhen-virtual-machine:~/ns-allinone-2.31/ns-2.31$ ns-crcn extra_agent.tcl

invalid command name "Agent/MyAgentOtcl"
while executing
"Agent/MyAgentOtcl create _o3 "
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/MyAgentOtcl"
invoked from within
"set myagent [new Agent/MyAgentOtcl]"
(file "extra_agent.tcl" line 1)
Did any one meet the same problem? Asking for help~
Best regards!
 
Old 05-18-2013, 05:33 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
invalid command name "Agent/MyAgentOtcl"
Any cc code, and the changes in ns-2.31/tcl/lib/files.tcl
must be compiled into the executable 'ns'.

How and where did you add this new protocol ? ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ns2.31 and CRCN patch buptmuye Linux - Wireless Networking 27 01-06-2016 06:27 PM
[SOLVED] The problem of running the tcl script file in the NS2.31+crcn environment syxcod Linux - Software 16 11-24-2015 04:12 PM
CRCN ns2 add channel GUI nam throughput problem Khaled ELmishad Linux - Software 37 12-05-2013 02:23 AM
crcn ns2 add channel GUI nam throughput problem Khaled ELmishad Programming 1 05-12-2012 08:37 AM
problem in displaying throughput in crcn patch in ns2 humairaafzal73 Linux - Software 0 02-07-2012 04:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration