Agent-based modeling of the context dependency in T cell recognition