def _setTPDynamicState(self, tpDynamicState):
for variableName in self._getTPDynamicStateVariableNames():<EOL><INDENT>self.__dict__[variableName] = tpDynamicState.pop(variableName)<EOL><DEDENT>
Set all the dynamic state variables from the <tpDynamicState> dict.

<tpDynamicState> dict has all the dynamic state variable names as keys and
their values at this instant as values.

We set the dynamic state variables in the tm object with these items.