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
|
|
|
|
2015-01-23 13:09:30 +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
|
2015-01-23 13:09:30 +00:00
|
|
|
,Tag: 'vn-param'
|
2022-05-30 01:30:33 +00:00
|
|
|
,Properties: {
|
|
|
|
value: {
|
|
|
|
type: null
|
|
|
|
,set: function(x) {
|
|
|
|
this._setValue(x);
|
2015-01-23 13:09:30 +00:00
|
|
|
}
|
2022-05-30 01:30:33 +00:00
|
|
|
,get: function() {
|
2015-01-23 13:09:30 +00:00
|
|
|
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;
|
2015-01-23 13:09:30 +00:00
|
|
|
}
|
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;
|
2015-01-23 13:09:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-09-26 09:28:47 +00:00
|
|
|
});
|