/home/groups/y/ya/yaacs/svnrepo/yaacs/bbtools.tcl
| Procedure Summary |
::bbtools::avgCompleted { db pj } |
::bbtools::bb-mean { db proj state start end ops_id hlsum hloss }Gets a performance index for all operators working on the specified project related to the specified state |
::bbtools::bb-stato { db proj op state start ops_id hls hlsum }Gets a performance index for operator op. |
::bbtools::bb_work_hard { db proj start {end {}} }Get a list of users which are working on a specified project and how much time they are working on a period inside a specified scheduled |
::bbtools::blockType { db block_id }Get a string describing the block's |
::bbtools::checkBlock { db proj uid }check for user's block on a |
::bbtools::getBlock { db id } |
::bbtools::getBlocked { db proj } |
::bbtools::hour_per_int { db proj start end ossStart op }Gets the number of hour that a specifed operator has worked on a project starting from start till |
::bbtools::howManyBlocked { db proj }Get the number of users |
::bbtools::lastNCompPerf { db user n }get the last n user's perfomance indexes related to a 'Completed' |
::bbtools::meanCallTime { db proj statT state start {end {}} }check the mean time needed to get a specific outcome on a project inside a certain time |
::bbtools::meanCallTimeUser { db proj user statT state start {end {}} }get the mean time needed by a user to get a specified outcome on a project (inside a certain time |
::bbtools::ossPeriod { db proj start end }Check how many hours has been worked for a given project on a period you wanna |
::bbtools::outcomeCases { db pj op start }return all outcome cases for a user in a project (within the "current" |
::bbtools::outcomesCases { db proj ops_id start statT } |
::bbtools::ownOutcomesCases { db proj op start statT } |
::bbtools::statUserProj { db login proj }Get statistics on user's |
::bbtools::turnHourPerInt { db proj turnStart start end op }Get how many hours a specified user spent (or is spending) on a project's turn |
::bbtools::unlock { db block_id }Unlock the block identified by |
::bbtools::whichTurn { db start proj }Get you turn's start and end of a period statring at |
| Procedure Detail |
proc ::bbtools::avgCompleted { db pj }
proc ::bbtools::bb-mean { db proj state start end ops_id hlsum hloss }
db - database connectionhandler
proj - project's id (on the db)
state - specify the 'situation' to look for as a four element list (each element is a list itself)
start - when do I have to start to look for?
end - when do I have to stop to look for?
ops_id - list of 'valid' users (i.e. users that are working on proj)
hlsum - sum of the previous list
hloss - osservation period's duration
proc ::bbtools::bb-stato { db proj op state start ops_id hls hlsum }
db - database connection handler
proj - project's id (on the db)
op - operator's id (on the db)
state - specify the 'situation' to look for into a four elements list
start - when do I have to start to look for?
ops_id - list of 'valid' users (i.e. users that are working on proj)
hls - list of minutes worked by each operators on proj (inside the current turn)
hlsum - sum of the previous list
proc ::bbtools::bb_work_hard { db proj start {end {}} }
db - database connection handler
proj - project's id (on the db)
start - when do I have to start to look for?
end - when do I have to end to look for?
proc ::bbtools::blockType { db block_id }
db - a database handler to perform the query
block_id - block's id (on the db)
proc ::bbtools::checkBlock { db proj uid }
db - - db con handler
proj - - project's id
uid - - user id
return number of blocks (if any), -1 on error
proc ::bbtools::getBlock { db id }
proc ::bbtools::getBlocked { db proj }
proc ::bbtools::hour_per_int { db proj start end ossStart op }
db - database connection handler
proj - project's id (on the db)
start - when do I have to start to count? (this is a turn start)
end - when do I have to stop?
ossStart - Osservation period start
op - operator's id (on the db)
proc ::bbtools::howManyBlocked { db proj }
db - a database handler to perform the query
proj - project's id (on the db)
proc ::bbtools::lastNCompPerf { db user n }
db - database connection handler
user - user's id
n - how many indexes do you need?
proc ::bbtools::meanCallTime { db proj statT state start {end {}} }
db - database connection handler
proj - project's id on db
statT - log table
state - outcome to look for
start - time interval's start point
end - (optional) time interval's end point,
default setted to now().
proc ::bbtools::meanCallTimeUser { db proj user statT state start {end {}} }
db - database connection handler
proj - project's id on db
user - user's id
statT - log table
state - outcome to look for
start - time interval's start point
end - (optional) time interval's end point,
default setted to now().
proc ::bbtools::ossPeriod { db proj start end }
db - database connection handler
proj - project's id
start - osservation period start
end - osservation period end
@retutn hours amount; -1 on error.
proc ::bbtools::outcomeCases { db pj op start }
db - database connection handler
pj - project's id on db
op - operator's id
start - current turn's start
proc ::bbtools::outcomesCases { db proj ops_id start statT }
proc ::bbtools::ownOutcomesCases { db proj op start statT }
proc ::bbtools::statUserProj { db login proj }
db - a database handler to perform the query
login - user's login name
proj - project's id (on the db)
proc ::bbtools::turnHourPerInt { db proj turnStart start end op }
db - database connection handler
proj - project's id
turnStart - turn's start
end - osservation period end
op - operator's id
proc ::bbtools::unlock { db block_id }
db - a database handler to perform the query
block_id - block's id (on the db)
proc ::bbtools::whichTurn { db start proj }
db - database connection handler
start - when did you start?
proj - project's id