50 lines
993 B
C++
50 lines
993 B
C++
/*
|
|
* File: Distance.cc
|
|
* Author: jgaebler
|
|
*
|
|
* Created on December 13, 2012, 4:10 PM
|
|
*/
|
|
|
|
#include "Distance.h"
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
Distance::Distance() : nodeName(""), distance(0.0) {
|
|
}
|
|
|
|
Distance::Distance(std::string name):nodeName(name), distance(0.0){
|
|
}
|
|
|
|
Distance::Distance(std::string name, double d):nodeName(name), distance(d){
|
|
}
|
|
|
|
Distance::Distance(const Distance& orig):nodeName(orig.nodeName), distance(orig.distance) {
|
|
}
|
|
|
|
Distance::~Distance() {
|
|
}
|
|
|
|
void
|
|
Distance::setDistance(double distance) {
|
|
this->distance = distance;
|
|
}
|
|
|
|
double
|
|
Distance::getDistance() const {
|
|
return distance;
|
|
}
|
|
|
|
void
|
|
Distance::setNodeName(std::string & name) {
|
|
nodeName = name;
|
|
}
|
|
|
|
std::string
|
|
Distance::getNodeName() const {
|
|
return nodeName;
|
|
}
|
|
|
|
}
|
|
}
|