Autonomic Approach to Planning and Scheduling in Networked Small Factories