In general usage, the term steam engine can refer to either the integrated steam plants (including boilers etc.) such as railway steam locomotives and portable engines , or may refer to the piston or turbine machinery alone, as in the beam engine and stationary steam engine .