Text this: The theory and method of design and optimization for Railway Intelligent Transportation Systems (RITS)