Made instance variables protected in AbstractAgent.