[Avrora] monitor and set power
salvador jauregui
sjauregu at gdl.cinvestav.mx
Tue Jan 13 21:19:10 PST 2009
Thank you so much, I registered the new class in the function addMonitors
and AVRORA worked well with MyMonitor.class
Regards
2009/1/13, aurelien francillon <aurel at naurel.org>:
>
> salvador jauregui a écrit :
>
> > I try to do a simple monitor like your example of
> > http://compilers.cs.ucla.edu/avrora/monitoring.html, just copy-paste,
> > compile and all is OK, unpack the avrora.jar and add my 2 classes
> > MemoryMonitor.class and MemoryMonitor$Monitor.class in avrora/monitors
> > and after that I do again the avrora.jar when I run the next instruction
> >
> > avrora -platform=micaz -seconds=2 -monitors=MyMonitor blink.od
> >
> > I get the next error
> >
> > Avrora [Beta 1.7.106] - (c) 2003-2007 UCLA Compilers Group
> > Monitor class not found: "MyMonitor"
> >
> > I don't know what happen.
>
> Hi,
> you need to add your monitor to the monitorMap :
> look at the class avrora.Default in the function addMonitors, you need
> to register your new monitor there.
> Without this avrora don't know how to call your monitor code.
> Best,
> Aurélien
>
> _______________________________________________
> Avrora mailing list
> Avrora at lists.ucla.edu
> http://lists.ucla.edu/cgi-bin/mailman/listinfo/avrora
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ucla.edu/pipermail/avrora/attachments/20090113/62392d22/attachment.htm
More information about the Avrora
mailing list