update20140630
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user