inheritance tree
Score.temporalElement
|
|
|
TestClass
class definition
Our demonstration class extends Score.temporalElement by the single parameter 'foo'.
class TestClass (Inheritance-free)
feat !TestClassType label
attr foo
- getFoo($)
Accessor for foo parameter value (i.e. a FD int).
- getFooParameter($)
Accessor for foo parameter object
- getInitInfo($ ...)
For creating the textual representation from self: add reflective information about the init method.
- init(foo:Foo ...)
The init method expects the arguments of Score.temporalElement plus the additional argument foo. Default of Foo is {FD.decl}.
Every standard Strasheela class must define a method called init. Mixin classes, on the other hand, can not define a method init (that would cause a conflict). For examples, see existing Strasheela extensions (e.g., contribution/anders/Motif/Motif.oz).
Also, all init method arguments should be optional.
end