Version1 /
ImplementAn accessor may specify that it implements an interface or the interface of another accessor in its
This has the effect of executing the For example, suppose an interface exports.setup = function() { this.parameter('foo', {'value':42}); this.output('bar'); } Then if an accessor specifies the following: exports.setup = function() { this.implement('MyInterface'); } then it will also have a parameter named 'foo' and an output named 'bar'. A derived accessor may modify the options of the interface specification. For example, exports.setup = function() { this.implement('MyInterface'); this.parameter('foo', {'value':43}); } modifies the default value of 'foo' to 43. See Also
|