| 1 |
< |
/* |
| 1 |
> |
/* |
| 2 |
|
* Copyright (c) 2005 The University of Notre Dame. All Rights Reserved. |
| 3 |
|
* |
| 4 |
|
* The University of Notre Dame grants you ("Licensee") a |
| 53 |
|
#include "types/BendType.hpp" |
| 54 |
|
namespace oopse { |
| 55 |
|
|
| 56 |
< |
class Bend { |
| 57 |
< |
public: |
| 58 |
< |
Bend(Atom* atom1, Atom* atom2, Atom* atom3, BendType* bt) |
| 59 |
< |
: atom1_(atom1), atom2_(atom2), atom3_(atom3), bendType_(bt) {} |
| 56 |
> |
class Bend { |
| 57 |
> |
public: |
| 58 |
> |
Bend(Atom* atom1, Atom* atom2, Atom* atom3, BendType* bt) |
| 59 |
> |
: atom1_(atom1), atom2_(atom2), atom3_(atom3), bendType_(bt) {} |
| 60 |
|
|
| 61 |
< |
|
| 62 |
< |
virtual void calcForce(); |
| 61 |
> |
virtual ~Bend() {} |
| 62 |
> |
virtual void calcForce(); |
| 63 |
|
|
| 64 |
< |
double getPotential() { |
| 65 |
< |
return potential_; |
| 66 |
< |
} |
| 64 |
> |
double getPotential() { |
| 65 |
> |
return potential_; |
| 66 |
> |
} |
| 67 |
|
|
| 68 |
< |
Atom* getAtomA() { |
| 69 |
< |
return atom1_; |
| 70 |
< |
} |
| 68 |
> |
Atom* getAtomA() { |
| 69 |
> |
return atom1_; |
| 70 |
> |
} |
| 71 |
|
|
| 72 |
< |
Atom* getAtomB() { |
| 73 |
< |
return atom2_; |
| 74 |
< |
} |
| 72 |
> |
Atom* getAtomB() { |
| 73 |
> |
return atom2_; |
| 74 |
> |
} |
| 75 |
|
|
| 76 |
< |
Atom* getAtomC() { |
| 77 |
< |
return atom3_; |
| 78 |
< |
} |
| 76 |
> |
Atom* getAtomC() { |
| 77 |
> |
return atom3_; |
| 78 |
> |
} |
| 79 |
|
|
| 80 |
< |
BendType * getBendType() { |
| 81 |
< |
return bendType_; |
| 82 |
< |
} |
| 80 |
> |
BendType * getBendType() { |
| 81 |
> |
return bendType_; |
| 82 |
> |
} |
| 83 |
|
|
| 84 |
< |
protected: |
| 84 |
> |
protected: |
| 85 |
|
|
| 86 |
< |
double potential_; |
| 87 |
< |
Atom* atom1_; |
| 88 |
< |
Atom* atom2_; |
| 89 |
< |
Atom* atom3_; |
| 90 |
< |
BendType* bendType_; /**< bend type */ |
| 86 |
> |
double potential_; |
| 87 |
> |
Atom* atom1_; |
| 88 |
> |
Atom* atom2_; |
| 89 |
> |
Atom* atom3_; |
| 90 |
> |
BendType* bendType_; /**< bend type */ |
| 91 |
|
|
| 92 |
< |
}; |
| 92 |
> |
}; |
| 93 |
|
|
| 94 |
|
|
| 95 |
|
|