UNPKG

@p2olab/pimad-core

Version:

PiMAd (Process-industry-Modular-Automation-description) High level access to automation of modular plants.

48 lines (47 loc) 1.64 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ZIPGateFactory = exports.XMLGateFactory = exports.MTPGateFactory = exports.MockGateFactory = exports.AMLGateFactory = void 0; const Utils_1 = require("../../Utils"); const Gate_1 = require("./Gate"); class AGateFactory { } class AMLGateFactory extends AGateFactory { create() { const gate = new Gate_1.AMLGate(); Utils_1.logger.debug(this.constructor.name + ' creates a ' + gate.constructor.name); return gate; } } exports.AMLGateFactory = AMLGateFactory; class MockGateFactory extends AGateFactory { create() { const gate = new Gate_1.MockGate(); Utils_1.logger.debug(this.constructor.name + ' creates a ' + gate.constructor.name); return gate; } } exports.MockGateFactory = MockGateFactory; class MTPGateFactory extends AGateFactory { create() { const gate = new Gate_1.MTPGate(); Utils_1.logger.debug(this.constructor.name + ' creates a ' + gate.constructor.name); return gate; } } exports.MTPGateFactory = MTPGateFactory; class XMLGateFactory extends AGateFactory { create() { const gate = new Gate_1.XMLGate(); Utils_1.logger.debug(this.constructor.name + ' creates a ' + gate.constructor.name); return gate; } } exports.XMLGateFactory = XMLGateFactory; class ZIPGateFactory extends AGateFactory { create() { const gate = new Gate_1.ZIPGate(); Utils_1.logger.debug(this.constructor.name + ' creates a ' + gate.constructor.name); return gate; } } exports.ZIPGateFactory = ZIPGateFactory;