| 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/AtomType.hpp" | 
| 54 |  |  | 
| 55 |  | namespace oopse{ | 
| 56 | < | class Atom : public StuntDouble { | 
| 57 | < | public: | 
| 58 | < | Atom(AtomType* at); | 
| 56 | > | class Atom : public StuntDouble { | 
| 57 | > | public: | 
| 58 | > | Atom(AtomType* at); | 
| 59 | > |  | 
| 60 | > | virtual std::string getType() {return atomType_->getName();} | 
| 61 | > |  | 
| 62 | > | /** | 
| 63 | > | * Returns the inertia tensor of this stuntdouble | 
| 64 | > | * @return the inertia tensor of this stuntdouble | 
| 65 | > | */ | 
| 66 | > | virtual Mat3x3d getI(); | 
| 67 | > |  | 
| 68 | > | /** | 
| 69 | > | * Returns the gradient of this stuntdouble | 
| 70 | > | * @return the inertia tensor of this stuntdouble | 
| 71 | > | */ | 
| 72 | > | virtual std::vector<RealType> getGrad(); | 
| 73 | > |  | 
| 74 | > | virtual void accept(BaseVisitor* v); | 
| 75 | > |  | 
| 76 | > | /** | 
| 77 | > | * Returns the AtomType of this Atom. | 
| 78 | > | * @return the atom type of this atom | 
| 79 | > | */ | 
| 80 | > | AtomType* getAtomType() { | 
| 81 | > | return atomType_; | 
| 82 | > | } | 
| 83 | > |  | 
| 84 | > | //forward  functions of AtomType class | 
| 85 | > | bool isCharge()  { | 
| 86 | > | return atomType_->isCharge(); | 
| 87 | > | } | 
| 88 | > |  | 
| 89 | > | bool isDirectional() { | 
| 90 | > | return atomType_->isDirectional(); | 
| 91 | > | } | 
| 92 | > |  | 
| 93 | > | bool isDipole()  { | 
| 94 | > | return atomType_->isDipole(); | 
| 95 | > | } | 
| 96 |  |  | 
| 97 | < | virtual std::string getType() {return atomType_->getName();} | 
| 98 | < |  | 
| 99 | < | /** | 
| 100 | < | * Returns the inertia tensor of this stuntdouble | 
| 101 | < | * @return the inertia tensor of this stuntdouble | 
| 102 | < | */ | 
| 103 | < | virtual Mat3x3d getI(); | 
| 104 | < |  | 
| 105 | < | /** | 
| 106 | < | * Returns the gradient of this stuntdouble | 
| 107 | < | * @return the inertia tensor of this stuntdouble | 
| 71 | < | */ | 
| 72 | < | virtual std::vector<double> getGrad(); | 
| 73 | < |  | 
| 74 | < | virtual void accept(BaseVisitor* v); | 
| 75 | < |  | 
| 76 | < | /** | 
| 77 | < | * Returns the AtomType of this Atom. | 
| 78 | < | * @return the atom type of this atom | 
| 79 | < | */ | 
| 80 | < | AtomType* getAtomType() { | 
| 81 | < | return atomType_; | 
| 82 | < | } | 
| 97 | > | bool isQudrapole()  { | 
| 98 | > | return atomType_->isQuadrupole(); | 
| 99 | > | } | 
| 100 | > |  | 
| 101 | > | bool isMultipole()  { | 
| 102 | > | return atomType_->isMultipole(); | 
| 103 | > | } | 
| 104 | > |  | 
| 105 | > | bool isGayBerne()  { | 
| 106 | > | return atomType_->isGayBerne(); | 
| 107 | > | } | 
| 108 |  |  | 
| 109 | < | //forward  functions of AtomType class | 
| 110 | < | bool    isCharge()  { | 
| 111 | < | return atomType_->isCharge(); | 
| 87 | < | } | 
| 88 | < |  | 
| 89 | < | bool    isDirectional() { | 
| 90 | < | return atomType_->isDirectional(); | 
| 91 | < | } | 
| 109 | > | bool isSticky()  { | 
| 110 | > | return atomType_->isSticky(); | 
| 111 | > | } | 
| 112 |  |  | 
| 113 | < | bool    isDipole()  { | 
| 114 | < | return atomType_->isDipole(); | 
| 115 | < | } | 
| 113 | > | bool isShape()  { | 
| 114 | > | return atomType_->isShape(); | 
| 115 | > | } | 
| 116 | > |  | 
| 117 | > | bool isMetal() { | 
| 118 | > | return atomType_->isMetal(); | 
| 119 | > | } | 
| 120 |  |  | 
| 121 | < | bool    isQudrapole()  { | 
| 122 | < | return atomType_->isQuadrupole(); | 
| 123 | < | } | 
| 124 | < |  | 
| 125 | < | bool    isMultipole()  { | 
| 126 | < | return atomType_->isMultipole(); | 
| 127 | < | } | 
| 128 | < |  | 
| 105 | < | bool    isGayBerne()  { | 
| 106 | < | return atomType_->isGayBerne(); | 
| 107 | < | } | 
| 108 | < |  | 
| 109 | < | bool    isSticky()  { | 
| 110 | < | return atomType_->isSticky(); | 
| 111 | < | } | 
| 112 | < |  | 
| 113 | < | bool    isShape()  { | 
| 114 | < | return atomType_->isShape(); | 
| 115 | < | } | 
| 116 | < |  | 
| 117 | < | int getIdent() { | 
| 118 | < | return atomType_->getIdent(); | 
| 119 | < | } | 
| 120 | < |  | 
| 121 | < | protected: | 
| 122 | < | AtomType* atomType_; | 
| 123 | < | }; | 
| 124 | < |  | 
| 121 | > | int getIdent() { | 
| 122 | > | return atomType_->getIdent(); | 
| 123 | > | } | 
| 124 | > |  | 
| 125 | > | protected: | 
| 126 | > | AtomType* atomType_; | 
| 127 | > | }; | 
| 128 | > |  | 
| 129 |  | }//namepace oopse | 
| 130 |  |  | 
| 131 |  | #endif //PRIMITIVES_ATOM_HPP |