<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def update(self, state, tnow):
        '''update the threat state'''
        self.state = state
        self.update_time = tnow