0
1
Fork 0
hedera-web-mindshore/js/vn/param.js

80 lines
1.2 KiB
JavaScript
Raw Normal View History

2016-09-26 09:28:47 +00:00
2022-05-30 01:30:33 +00:00
var VnObject = require('./object');
var Type = require('./type');
var ParamIface = require('./param-iface');
var LotIface = require('./lot-iface');
2016-09-26 09:28:47 +00:00
/**
2022-05-30 01:30:33 +00:00
* A simple implementation of @ParamIface.
2022-05-26 06:08:31 +00:00
*/
2022-05-30 01:30:33 +00:00
module.exports = new Class({
Extends: VnObject
,Implements: ParamIface
,Tag: 'vn-param'
2022-05-30 01:30:33 +00:00
,Properties: {
value: {
type: null
,set: function(x) {
this._setValue(x);
}
2022-05-30 01:30:33 +00:00
,get: function() {
return this._value;
}
},
2022-05-30 01:30:33 +00:00
type: {
type: Type
,set: function(x) {
this._setType(x);
}
,get: function() {
return this._type;
}
2022-05-30 01:30:33 +00:00
},
param: {
type: ParamIface
,set: function(x) {
this._setParam(x);
}
,get: function() {
return this._param;
}
},
master: {
type: ParamIface
,set: function(x) {
this._setParam(x);
}
,get: function() {
return this._param;
}
},
lot: {
type: LotIface
,set: function(x) {
this._setLot(x);
}
,get: function() {
return this._lot;
}
},
name: {
type: String
,set: function(x) {
this._setName(x);
}
,get: function() {
return this._name;
}
},
oneWay: {
type: Boolean
,set: function(x) {
this._oneWay = x;
}
,get: function() {
return this._oneWay;
}
}
}
2016-09-26 09:28:47 +00:00
});