protected override EntityMap CreateEntityMap(int serverTime) { SnapshotPair pair = _snapshotSelector.SelectSnapshot(serverTime); if (pair != null) { CompensationMapDiffHandler diffHandler = new CompensationMapDiffHandler(new InterpolationInfo(pair)); EntityMap left = pair.LeftSnapshot.CompensationEntityMap; EntityMap right = pair.RightSnapshot.CompensationEntityMap; EntityMapCompareExecutor.Diff(left, right, diffHandler, "compensation", null); return(diffHandler.TheSnapshot.EntityMap); } _logger.ErrorFormat("can't get snapshot at {0}, current range: {1}-{2}", serverTime, _snapshotSelector.OldestSnapshot.ServerTime, _snapshotSelector.LatestSnapshot.ServerTime); return(null); }
public void Update(SnapshotPair snapshotPair) { this.snapshotPair = snapshotPair; }
public InterpolationInfo(SnapshotPair snapshotPair) { _snapshotPair = snapshotPair; }
public void Update(SnapshotPair snapshotPair, ISnapshot lastestSnapshot) { _snapshotPair = snapshotPair; }