Molecular machine as chemical-thermodynamic devices