Allen-Like Theory of Time for Tree-Like Structures