MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/technological/proxy/BrakeProxy.hh
2024-06-07 11:12:56 +03:00

38 lines
788 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* BrakeProxy.hh
*
* Created on: 7 окт. 2020 г.
* Author: LeonidTitov
*/
#ifndef UMLIBRARY_TECHNOLOGICAL_PROXY_BRAKEPROXY_HH_
#define UMLIBRARY_TECHNOLOGICAL_PROXY_BRAKEPROXY_HH_
#include "../../common/ResourceKeeper.hpp"
#include "../../driver/IBrake.hh"
namespace technological { namespace proxy {
class BrakeProxy : public driver::IBrake {
Locable<driver::IBrake> brake; //!<Ресурс тормоза.
bool intention; //!<Потребность захвата тормоза.
public:
BrakeProxy( ResourceKeeper<driver::IBrake> & brake );
void engage();
void disengage();
bool isApplied() const;
bool isFree() const;
bool isBlocked() const;
};
}}
#endif /* UMLIBRARY_TECHNOLOGICAL_PROXY_BRAKEPROXY_HH_ */