Developing the Fault Diagnostics and Prognostics Model of a Rotating Machinery