-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlevelSix.h
35 lines (28 loc) · 1.02 KB
/
levelSix.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef LEVELSIX_H
#define LEVELSIX_H
#include "circuitLevel.h"
/**
* @author Joseph Corbeil, Johnny Song, Ezekiel Jaramillo, Ahmed Zahran, Raj Reddy, Joel Ronca
* @date April. 22, 2024
* @name levelSix h file for assignment9
* This h file contains the outlined methods for use within the circuit level six.
*/
class LevelSix: public CircuitLevel{
private:
/// @brief first input of the user
bool firstBit;
/// @brief second input of the user
bool secondBit;
string userGateSelected;
public:
/// @brief Constructor that initializes the bits to false and sets the preset gate
LevelSix();
/// @brief Uses a vector of inputs from the user and sets them in the model
/// @param vector of boolean user inputs
void setInput(std:: vector<bool> inputs) override;
/// @brief Computes the output of the levels circuit specific to this level using
/// the user inputs
void computeOutput()override;
void setGateTypes(const std::vector<std::string>& gateTypes) override;
};
#endif // LEVELSIX_H