Changes between Version 23 and Version 24 of v1


Ignore:
Timestamp:
Aug 4, 2010, 12:48:25 AM (15 years ago)
Author:
naitabde
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • v1

    v23 v24  
    5959* `viewDb():` Prints the contents of tables : Outlet, machine and PDU
    6060
    61 * `storeCons(self,nomMachine,cons,date):` Inserts a new line in the table powerCons 
     61* `storeCons(nomMachine,cons,date):` Inserts a new line in the table powerCons 
    6262
    63 * `viewTableMachine():`* Display only the table : machine
     63* `viewTableMachine():` Display only the table : machine
    6464
    6565* `viewMachineCons(nomMachine):` Prints the power consumption values of the machine "nomMachine" whith the corresponding dates
     
    7373* `getPduMachines(pduName):` Returns a set of machines' names correspondint to the connected machines to PDU "pduName"
    7474
    75 * `getCons(nomMachine,start_date,end_date):`
     75* `getCons(nomMachine,start_date,end_date):` Returns a set of machine "nomMachine"'s  power consumption values from "start_date" to "end_date" and    another set of the corresponding dates
    7676
     77* `getIdMachine(machineName):` Returns the Id of the machine named "machineName"
     78
     79* `getLastLoadDate(IdMachine):` Returns the most recent date in table "cpu_charge" where the machine Id is "IdMachine"
     80
     81* `storeLoad(IdMachine,dateList,avg1mn_list,avg5mn_list,avg15mn_list):` Inserts a new line to the table cpu_charge whith the given entry values
     82
     83* `viewMachineLoad(nomMachine):` Prints the load values of the machine "nomMachine" whith the corresponding dates
    7784
    7885'''2. PDU Objects: '''  A PDU object allows connexion to a supervisable pdu and extraction of machines' power consumption data