1 |
|
/* |
2 |
< |
* Copyright (C) 2000-2004 Object Oriented Parallel Simulation Engine (OOPSE) project |
2 |
> |
* Copyright (C) 2000-2009 The Open Molecular Dynamics Engine (OpenMD) project |
3 |
|
* |
4 |
< |
* Contact: oopse@oopse.org |
4 |
> |
* Contact: gezelter@openscience.org |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or |
7 |
|
* modify it under the terms of the GNU Lesser General Public License |
32 |
|
|
33 |
|
#include "primitives/StuntDouble.hpp" |
34 |
|
|
35 |
< |
namespace oopse { |
35 |
> |
namespace OpenMD { |
36 |
|
|
37 |
< |
StuntDouble::StuntDouble() : |
37 |
> |
StuntDouble::StuntDouble(ObjectType objType, DataStoragePointer storage) : |
38 |
> |
objType_(objType), storage_(storage), |
39 |
|
linear_(false), linearAxis_(-1), globalIndex_(-1), localIndex_(-1), snapshotMan_(NULL){ |
40 |
|
} |
41 |
|
|
43 |
|
|
44 |
|
} |
45 |
|
|
46 |
+ |
void StuntDouble::zeroForces() { |
47 |
+ |
setFrc(V3Zero); |
48 |
+ |
} |
49 |
|
void StuntDouble::addProperty(GenericData* genData) { |
50 |
< |
properties.addProperty(genData); |
50 |
> |
properties_.addProperty(genData); |
51 |
|
} |
52 |
|
|
53 |
|
void StuntDouble::removeProperty(std::string& propName) { |
54 |
< |
properties.removeProperty(); |
54 |
> |
properties_.removeProperty(propName); |
55 |
|
} |
56 |
|
|
57 |
|
void StuntDouble::clearProperties() { |
58 |
< |
properties.clearProperties(); |
58 |
> |
properties_.clearProperties(); |
59 |
|
} |
60 |
|
|
61 |
|
std::vector<std::string> StuntDouble::getPropertyNames() { |
62 |
< |
return properties.getPropertyNames(); |
62 |
> |
return properties_.getPropertyNames(); |
63 |
|
} |
64 |
|
|
65 |
|
std::vector<GenericData*> StuntDouble::getProperties() { |
66 |
< |
return properties.getProperties(); |
66 |
> |
return properties_.getProperties(); |
67 |
|
} |
68 |
|
|
69 |
< |
GenericData* StuntDouble::getPropertyByName(std:string& propName) { |
70 |
< |
return properties.getPropertyByName(propName); |
69 |
> |
GenericData* StuntDouble::getPropertyByName(std::string& propName) { |
70 |
> |
return properties_.getPropertyByName(propName); |
71 |
|
} |
72 |
|
|
73 |
|
|