nope/modules/mod-Generic-PLC-Interface/assembly/manual-assembly.ts
2020-09-08 16:59:06 +02:00

56 lines
1.4 KiB
TypeScript

/**
* @author Martin Karkowski
* @email m.karkowski@zema.de
* @create date 2018-07-03 07:37:59
* @modify date 2020-09-08 16:08:16
* @desc [description]
*/
import { IModuleDescription } from '../../mod-Assembly-Builder/type/interfaces';
import { GenericPLC } from '../src/GenericPLC';
import { RawPLCModuleBase } from '../src/RawPLCModuleBase';
import { RawPLCModuleFactory } from '../src/RawPLCModuleFactory';
import { TYPES } from '../type/types';
export const DESCRIPTION: IModuleDescription<typeof TYPES> = {
AUTOSTART: {
plc: [
]
},
DEFAULT_INSTANCES: ['plc'],
NAME: 'PLC',
PROVIDED_CLASSES: [
{
selector: TYPES.RawPLCModule,
factorySelector: TYPES.RawPLCModuleFactory,
type: RawPLCModuleBase,
},
{
selector: TYPES.ModuleFactory,
type: RawPLCModuleFactory,
options: {
scope: 'inSingletonScope'
}
},
{
selector: TYPES.GenericPLC,
factorySelector: TYPES.GenericPLCFactory,
type: GenericPLC,
options: {
scope: 'inSingletonScope'
}
},
],
PROVIDED_FUNCTIONS: [],
REQURIES: ["PUBSUB"],
TYPES,
ACTIVATIONHANDLERS: []
}
export default DESCRIPTION;
/** Export the Type */
export type PLC = GenericPLC;
export type SmartBuffer = RawPLCModuleBase;