Doesn't it equals to https://github.com/ipeirotis/Troia-Server/pull/67/files#L1R9 ContPriorityCalculator ?