-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlinearMovementStatement.cpp
40 lines (33 loc) · 1.16 KB
/
linearMovementStatement.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
38
39
40
#include "linearMovementStatement.h"
#include "iostream"
linearMovementStatement::linearMovementStatement(double XValue, double YValue, double ZValue, double AValue, double BValue, double CValue)
{
type = "linearMovementStatement";
parameters["X"] = XValue;
parameters["Y"] = YValue;
parameters["Z"] = ZValue;
parameters["A"] = AValue;
parameters["B"] = BValue;
parameters["C"] = CValue;
}
void linearMovementStatement::setParameters(double XValue, double YValue, double ZValue, double AValue, double BValue, double CValue)
{
parameters["X"] = XValue;
parameters["Y"] = YValue;
parameters["Z"] = ZValue;
parameters["A"] = AValue;
parameters["B"] = BValue;
parameters["C"] = CValue;
}
std::map<std::string, double> linearMovementStatement::getParameters(){
return parameters;
}
void linearMovementStatement::printParameters(){
std::map<std::string, double>::iterator itr;
for(itr=parameters.begin(); itr != parameters.end(); itr++)
std::cout<<"the value of parameter"<<itr->first<<" is "<<itr->second<<std::endl;
}
void linearMovementStatement::executeStatement()
{
//execute linear movement statement
}