@chix/flow
Version:
106 lines • 3.87 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var input_1 = require("../input");
var ExternalStartPort = (function (_super) {
__extends(ExternalStartPort, _super);
function ExternalStartPort(externalPort, actor) {
var _this = _super.call(this, {
name: externalPort.name,
type: ':start',
}) || this;
_this.nodeId = externalPort.nodeId;
_this.name = externalPort.name;
_this.actor = actor;
return _this;
}
ExternalStartPort.prototype.isSync = function () {
return true;
};
ExternalStartPort.prototype.receive = function (_packet, _index) {
this.actor.push();
return this;
};
ExternalStartPort.prototype.fill = function (_packet) {
console.error('Fill is bypassed');
return this;
};
ExternalStartPort.prototype.isFilled = function () {
return _super.prototype.isFilled.call(this);
};
ExternalStartPort.prototype.isRequired = function () {
return false;
};
ExternalStartPort.prototype.read = function () {
return _super.prototype.read.call(this);
};
ExternalStartPort.prototype.connect = function (link) {
return _super.prototype.connect.call(this, link);
};
ExternalStartPort.prototype.plug = function (target) {
return _super.prototype.plug.call(this, target);
};
ExternalStartPort.prototype.disconnect = function (link) {
return _super.prototype.disconnect.call(this, link);
};
ExternalStartPort.prototype.unplug = function (target) {
return _super.prototype.unplug.call(this, target);
};
ExternalStartPort.prototype.clearInput = function () {
return _super.prototype.clearInput.call(this);
};
ExternalStartPort.prototype.setDefault = function (_value) {
console.error('Default not supported');
return this;
};
ExternalStartPort.prototype.hasDefault = function () {
console.error('Default not supported');
return false;
};
ExternalStartPort.prototype.clearDefault = function () {
console.error('Default not supported');
return this;
};
ExternalStartPort.prototype.setContext = function (_value) {
console.error('Context not supported');
return this;
};
ExternalStartPort.prototype.hasContext = function () {
console.error('Context not supported');
return false;
};
ExternalStartPort.prototype.clearContext = function () {
console.error('Context not supported');
return this;
};
ExternalStartPort.prototype.setPersist = function (_value) {
console.error('Persist not supported');
return this;
};
ExternalStartPort.prototype.hasPersist = function () {
console.error('Persist not supported');
return false;
};
ExternalStartPort.prototype.clearPersist = function () {
console.error('Persist not supported');
return this;
};
ExternalStartPort.prototype.destroy = function () {
_super.prototype.destroy.call(this);
};
return ExternalStartPort;
}(input_1.InputPort));
exports.ExternalStartPort = ExternalStartPort;
//# sourceMappingURL=start.js.map