00001 /* 00002 * Specification.cpp defines functions to set and get the specifications of the board channels. 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 #include "Specification.h" 00022 00023 Specification::Specification() 00024 { 00025 } 00026 00027 Specification::~Specification() 00028 { 00029 } 00030 00031 int Specification::getChannel() 00032 { 00033 return channel; 00034 } 00035 00036 float Specification::getCurrent() 00037 { 00038 return mx_current; 00039 } 00040 00041 float Specification::getVoltage() 00042 { 00043 return mx_voltage; 00044 } 00045 00046 void Specification::setChannel(int chnl) 00047 { 00048 channel = chnl; 00049 } 00050 00051 void Specification::setCurrent(float mx_cur) 00052 { 00053 mx_current = mx_cur; 00054 } 00055 00056 void Specification::setVoltage(float mx_vol) 00057 { 00058 mx_voltage = mx_vol; 00059 }