An approach for designing cognitive engines in cognitive peer-to-peer networks. (July 2016)