Version0 /
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() { parameter('foo', {'value':42}); output('bar'); } Then if an accessor specifies the following: exports.setup = function() { 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() { implement('MyInterface'); parameter('foo', {'value':43}); } modifies the default value of 'foo' to 43. See Lee and Seshia, Chapter 14 for the meaning interface inheritance. See Support for implement and extend in Ptolemy II. |