(Inanimate) Nouns being used in a personal sense
From Wikipedia:
Anthropomorphism is a term [used] to refer to any attribution of human characteristics (or characteristics assumed to belong only to humans) to non-human animals or non-living things.
See also: Wiktionary.
I don't understand your example, but personification is the word I would use.