5 function GenericAPIAdaptor(){
6 this.LMSInitialize = LMSInitializeMethod;
7 this.LMSGetValue = LMSGetValueMethod;
8 this.LMSSetValue = LMSSetValueMethod;
9 this.LMSCommit = LMSCommitMethod;
10 this.LMSFinish = LMSFinishMethod;
11 this.LMSGetLastError = LMSGetLastErrorMethod;
12 this.LMSGetErrorString = LMSGetErrorStringMethod;
13 this.LMSGetDiagnostic = LMSGetDiagnosticMethod;
18 function LMSInitializeMethod(parameter){return "true";}
22 function LMSFinishMethod(parameter){return "true";}
26 function LMSCommitMethod(parameter){return "true";}
30 function LMSGetValueMethod(element){return "";}
34 function LMSSetValueMethod(element, value){return "true";}
36 * LMSGetLastErrorString
38 function LMSGetErrorStringMethod(errorCode){return "No error";}
42 function LMSGetLastErrorMethod(){return "0";}
46 function LMSGetDiagnosticMethod(errorCode){return "No error. No errors were encountered. Successful API call.";}
48 var API = new GenericAPIAdaptor;