[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SimpleLink ctor
Hi,
Could someone please explain to me the meaning of the
following lines found in /tcl/lib/ns-link.tcl
SimpleLink instproc init .... {
....
....
if {[[$q info class] info heritage ErrorModule] == "ErrorModule"} {
set head_ [$q classifier] }
...
...
}
1> Does the first line mean: if q belongs to a class which inherits from class ErrorModule ?
2> I don't understand [$q classifier].
q is a parameter given to the SimpleLink constructor and represents a queue from a specific
type. I searched the ns sources but couldn't find anywhere a place where a method "classifier"
was defined for a queue.
I hope someone will be able to help me.
Marc Volmer