Rule-based firing for network simulations