Change initialization of agents, removing requirement to use getters for
internal variables State, AgentFactory and Scheduler.