38 lines
788 B
C++
38 lines
788 B
C++
/*
|
||
* 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_ */
|