| 127 | |
| 128 | |
| 129 | int FrictionModel::getResponse(int responseID, Information &info) |
| 130 | { |
| 131 | // each subclass must implement its own stuff |
| 132 | switch (responseID) { |
| 133 | case 1: |
| 134 | info.setDouble(this->getNormalForce()); |
| 135 | return 0; |
| 136 | |
| 137 | case 2: |
| 138 | info.setDouble(this->getVelocity()); |
| 139 | return 0; |
| 140 | |
| 141 | case 3: |
| 142 | info.setDouble(this->getFrictionForce()); |
| 143 | return 0; |
| 144 | |
| 145 | case 4: |
| 146 | info.setDouble(this->getFrictionCoeff()); |
| 147 | return 0; |
| 148 | |
| 149 | default: |
| 150 | return -1; |
| 151 | } |
| 152 | } |
nothing calls this directly
no test coverage detected