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

Re: otcl syntax question



Ramon Caceres wrote:
> 
> I would like to access the node id (e.g., "1") from otcl
> code associated with an agent that is attached to the node.
[..]

A possible solution would be:

Agent/LossMonitor instproc log-loss {} {
        $self instvar node_
        puts "log-loss: [$node_ id]"
}


I hope I understood your question right and that is what you wanted 
to do.

Marc

-- 
Marc Greis                                     [email protected]