Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00036 #import <Foundation/Foundation.h>
00037
00038 @class InsertOperation, Request;
00039
00043 @interface Synchronization : NSObject {
00044
00045 NSMutableArray *remoteRequestBuffer;
00046 NSMutableArray *insRequestLog;
00047 NSMutableArray *delUpdateRequestLog;
00048 NSMutableDictionary *insRequestDictionary;
00049 NSMutableDictionary *delUpdateRequestDictionary;
00050 NSInteger r;
00051 NSUInteger c;
00052 NSInteger firstDelPosition;
00053 }
00054
00059 - (void)initialization;
00060
00061
00067 - (void)generateRequest:(id)operation;
00068
00074 - (Request*)computeBFOfRequest:(Request*)request;
00075
00076
00081 - (void)canonizeRequest:(Request*)requestLocal;
00082
00083
00084
00085
00092 - (NSInteger)dependencyOfRequest:(Request*)newRequest withRequest:(Request*)requestFromLog;
00093
00094
00095
00102 - (Request*)ETofRequest:(Request*)newRequest withRequest:(Request*)requestFromLog;
00103
00104
00112 - (BOOL)integrateRemoteRequest;
00113
00114
00115
00116
00122 - (Request*)computeFFOfRequest:(Request*)req;
00123
00124
00130 - (void)ITofRequest:(Request*)ofRequest withRequest:(Request*)withRequest;
00131
00132
00139 - (void)receiveRequest:(Request *)receiveRequest;
00140
00141
00147 - (BOOL)Check_Local:(id)operation;
00148
00149
00155 - (BOOL)Check_Remote:(Request *)myRequest;
00156
00157
00162 - (NSMutableArray*)getInsRequestLog;
00163
00164
00169 - (NSMutableArray*)getDelUpdateRequestLog;
00170
00171
00177 - (NSMutableDictionary*)getInsRequestDictionary;
00178
00183 - (NSMutableDictionary*)getDelUpdateRequestDictionary;
00184
00185
00186 @end