[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [ns] error model



To me, TwoStateErrorModel is different from MultiStateErrorModel
in terms of their invoking way and usage even though MultiStateErrorModel
can be degenerated into the two-state error model. I recomend you to use
MultistateErrorModel rather than TwoState since the multistate error model
is more flexible in terms of the usage.

Also, I am going to fix a minor bug of the MultistateError Model which I
posted at the ns-suers as the title of prev_. I guess that I will include the
modified one at the ns-snapshot at the next week.

For the MultistateErrorModel, you can refer to chapter 13.3 of ns manual
which shows how you can use the MultistateErrorModel.

-jahn



-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Laurent
Sent: Wednesday, July 04, 2001 10:31 PM
To: [email protected]
Subject: [ns] error model


How can i use the 2states markov model with ns (i use ns2.1b8)?
I tried this but it doesn't work:
----------------------------------------------
set rate [list  0.3 0.7 ]
set transition [list 0.1 0.9 ]
set transunit pkt
set errObj [new ErrorModel/TwoState $rate $transunit $transition]
----------------------------------------------

I have the following errors:
----------------------------
no value given for parameter "rv0" to "_o59"
    (Object next line 1)
    invoked from within
"$self next"
    (procedure "_o59" line 2)
    (ErrorModel/TwoStateMarkov init line 2)
    invoked from within
"_o59 init {0.3 0.7} pkt {0.3 0.7}"
    (Class create line 1)
    invoked from within
"ErrorModel/TwoStateMarkov create _o59 {0.3 0.7} pkt {0.3 0.7}"
    invoked from within
"catch "$className create $o $args" msg"
    (procedure "new" line 3)
    invoked from within
"new ErrorModel/TwoStateMarkov $rate $transunit $transition"
    (procedure "MarkovErrorProc" line 7)



Laurent