Text this: A simulated approach of a cyber physical system with reactive decision making for flexible manufacturing systems