00001 /* 00002 * Measurment.cpp defines necessary set and get functions for diagnosis boar measurments. 00003 * 00004 * Copyright (c).2012. OWNER: Institute for Software Technology, TU Graz Austria. 00005 * Authors: Safdar Zaman, Gerald Steinbauer. (szaman@ist.tugraz.at, steinbauer@ist.tugraz.at) 00006 * All rights reserved. 00007 * This program is free software: you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation, either version 3 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00019 */ 00020 00021 00022 #include "Measurment.h" 00023 00024 Measurment::Measurment() 00025 { 00026 } 00027 00028 Measurment::~Measurment() 00029 { 00030 } 00031 00032 int Measurment::getChannel() 00033 { 00034 return channel; 00035 } 00036 00037 char Measurment::getChannelState() 00038 { 00039 return onOff; 00040 } 00041 00042 float Measurment::getCurrent() 00043 { 00044 return current; 00045 } 00046 00047 float Measurment::getVoltage() 00048 { 00049 return voltage; 00050 } 00051 00052 void Measurment::setChannel(int chnl) 00053 { 00054 channel = chnl; 00055 } 00056 00057 void Measurment::setChannelState(char state) 00058 { 00059 onOff = state; 00060 } 00061 00062 void Measurment::setCurrent(float cur) 00063 { 00064 current = cur; 00065 } 00066 00067 void Measurment::setVoltage(float vol) 00068 { 00069 voltage = vol; 00070 }