/** * reset the state (before each round) * * @param clusterSnapshot the current cluster snapshot */ public final synchronized void resetState(ClusterSnapshot clusterSnapshot) { this.clusterSnapshot = clusterSnapshot; accessesByPrimaryOwner = new Accesses[clusterSnapshot.size()]; for (int i = 0; i < accessesByPrimaryOwner.length; ++i) { accessesByPrimaryOwner[i] = new Accesses(); } hasAccessesCalculated = false; }