1. A surveillance system for detecting events in an environment, comprising: a camera arranged in an environment; a plurality of context sensors arranged in the environment and configured to detect events in the environment; and a processor coupled to the camera and the plurality of context sensors via a network, the processor further comprising: means for providing the camera with actions based only on the events detected by the context sensors, the actions causing the camera to view the detected events; a memory storing the events and actions, in which the events and actions are stored in a table of the memory, and an entry a j in the table maps an event to an action; means for selecting the entry a j according to: a j = arg ⁢ max i ∈ I ⁢ R pc ⁡ ( p i ⁡ [ t ] , c j ⁡ [ t ] ) R pp ⁡ ( p i ⁡ [ t ] ) , where p i [t] is a sequence of events generated by the camera in a particular pose corresponding to i, c j [t] is a sequence of events generated by a particular context sensor j, R pc is a correlation between the two event sequences p i [t] and c j [t], R pp is an auto-correlation of the event sequence p i [t], and t is an instant in time at which a particular event is detected.