[Avrora] v1.4.0 and v1.6.0 small revisions needed to fix energy-log monitor bug

Yao Li liyao.capehope at gmail.com
Sun May 14 16:57:11 PDT 2006


Hello,
         I am using Avrora and the energy model in my work, but
unfortunately I find that the energy-log monitor works neither in v1.6.0 and
v1.4.0. In v1.4.0 the simulator could not parse the energy-log monitor
option, but this can be fixed easily by adding a line in the
/actions/SimAction.java file--
        addNewMonitorType(new EnergyMonitor());       //original
        addNewMonitorType(new EnergyMonitorLog());  //new line added
      I think such a revision is due in the 'stable' version 1.4.0 so as not
to waste the developed monitor...
      As for v1.6.0,  just two small revisions are needed:
      (1) in EnergyMonitor.java : in definition of class Monitor,
     EnergyControl.Instance instance;      --->  protected
EnergyControl.Instance instance;
     (2) in EnergyMonitorLog.java :    under the anotation
          // subscribe the monitor to the energy control
add a line:
          instance.subscribe((EnergyObserver)this);
       With very small revisions the energy monitors of v1.6.0 will work
right.
       Maybe the problem has already been fixed in intermediate versions,
but I really hope it get fixed in the stable release versions.


Sincerely yours,

Yao Li



> --
> Li Yao
> Department of Electronic Engineering
> Tsinghua University
> P.R.China
> liyao.capehope at gmail.com
> Mailing Address:
> Li Xiaocheng
> Room 809 Quantum Plaza
> 23 Zhi Chun Road
> Hai Dian District
> Beijing 100083
> P.R. China
>
>


-- 
Li Yao
Department of Electronic Engineering
Tsinghua University
P.R.China
liyao.capehope at gmail.com
Mailing Address:
Li Xiaocheng
Room 809 Quantum Plaza
23 Zhi Chun Road
Hai Dian District
Beijing 100083
P.R. China
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ucla.edu/pipermail/avrora/attachments/20060515/6ed8e4c7/attachment.htm


More information about the Avrora mailing list