working on sensingEventManager rules

please check priorities and possible java language problems