2024-06-04 23:00:22 +03:00
|
|
|
/**
|
|
|
|
* Module: OSS data loading and processing.
|
|
|
|
*/
|
|
|
|
|
|
|
|
import { IOperationSchema, IOperationSchemaData } from './oss';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Loads data into an {@link IOperationSchema} based on {@link IOperationSchemaData}.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
export class OssLoader {
|
|
|
|
private schema: IOperationSchemaData;
|
|
|
|
|
2024-06-21 18:47:46 +03:00
|
|
|
|
2024-06-04 23:00:22 +03:00
|
|
|
constructor(input: IOperationSchemaData) {
|
|
|
|
this.schema = input;
|
|
|
|
}
|
|
|
|
|
|
|
|
produceOSS(): IOperationSchema {
|
|
|
|
const result = this.schema as IOperationSchema;
|
2024-06-21 18:47:46 +03:00
|
|
|
//result.producedData = [1, 2, 3]; // TODO: put data processing here
|
2024-06-04 23:00:22 +03:00
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|