Parking Garage Control System
ESP32 Parking Garage – ESP-IDF/FreeRTOS
Loading...
Searching...
No Matches
IGate Class Referenceabstract

Gate interface for barrier control abstraction. More...

#include <IGate.h>

Inheritance diagram for IGate:

Public Member Functions

virtual ~IGate ()=default
 
virtual void open ()=0
 Open the barrier.
 
virtual void close ()=0
 Close the barrier.
 
virtual bool isOpen () const =0
 Check if barrier is currently open.
 
virtual bool isCarDetected () const =0
 Check if car is detected in light barrier.
 

Detailed Description

Gate interface for barrier control abstraction.

This interface abstracts the physical gate components (button, light barrier, motor) allowing the gate controller logic to be independent of hardware specifics.

Constructor & Destructor Documentation

◆ ~IGate()

virtual IGate::~IGate ( )
virtualdefault

Member Function Documentation

◆ close()

virtual void IGate::close ( )
pure virtual

Close the barrier.

Implemented in Gate.

◆ isCarDetected()

virtual bool IGate::isCarDetected ( ) const
pure virtual

Check if car is detected in light barrier.

Returns
true if car is blocking light barrier, false otherwise

Implemented in Gate.

◆ isOpen()

virtual bool IGate::isOpen ( ) const
pure virtual

Check if barrier is currently open.

Returns
true if barrier is open, false otherwise

Implemented in Gate.

◆ open()

virtual void IGate::open ( )
pure virtual

Open the barrier.

Implemented in Gate.


The documentation for this class was generated from the following file:
Coverage