A distributed Intelligence Methodology for Railway Traffic Control