-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel_module.cpp
38 lines (33 loc) · 1019 Bytes
/
model_module.cpp
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
36
37
/*
* model_module.cpp
*
* Created on: Apr 2, 2018
* Author: MisterCavespider
*/
#include "model_module.h"
Module::Module(uint8_t id,
const char *name, const char **valueNames,
uint8_t valueCount, uint8_t inputCount,
uint8_t outputCount, uint8_t paralsCount)
{
this->id = id;
this->name = name;
this->valueNames = valueNames;
this->valueCount = valueCount;
this->inputCount = inputCount;
this->outputCount = outputCount;
this->paralsCount = paralsCount;
}
uint8_t Module::getId() {return id;}
Value **Module::getValues() {return values;}
uint8_t *Module::getInputs() {return inputs;}
uint8_t *Module::getOutputs() {return outputs;}
const char *Module::getName() {return name;}
const char **Module::getValueNames() {return valueNames;}
uint8_t Module::getValueCount() {return valueCount;}
uint8_t Module::getInputCount() {return inputCount;}
uint8_t Module::getOutputCount() {return outputCount;}
uint8_t Module::getParalsCount() {return paralsCount;}
Module::~Module()
{
}