Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of framagit.org:simgrid/simgrid
[simgrid.git] / examples / cpp / battery-simple / s4u-battery-simple.tesh
1 #!/usr/bin/env tesh
2
3 $ ${bindir:=.}/s4u-battery-simple ${platfdir}/battery_platform.xml
4 > [host1:manager:(1) 0.000000] [battery_simple/INFO] Initial Battery: SoC: 0.800000 SoH: 1.000000 Capacity (Total): 10.000000Wh Capacity (Usable): 6.000000Wh P: 0.000000
5 > [host1:manager:(1) 0.000000] [battery_simple/INFO] Battery power set to: 200.000000W
6 > [host1:manager:(1) 0.000000] [battery_simple/INFO] The battery will be depleted at: 108.000000
7 > [host1:manager:(1) 108.000000] [battery_simple/INFO] Energy consumed : 21600.000000J (6.000000Wh)