Displaying 1 result from an estimated 1 matches for "domultiplyag".
Did you mean:
domultiplyage
2011 Aug 26
0
R.oo inheritance with pass by reference
...S3("getPerObj", "AgeMultiplier", function(this, ...) {
this$.perobj
})
setMethodS3("getAM", "AgeMultiplier", function(this, ...) {
this$.AM
})
setMethodS3("getWM", "AgeMultiplier", function(this, ...) {
this$.WM
})
setMethodS3("doMultiplyAge", "AgeMultiplier", function(this, ...) {
a = this$.perobj;
this$.AM = a$getAge() * this$.m;
a$setAge(this$.AM);
})
setMethodS3("doMultiplyWeight", "AgeMultiplier", function(this, ...) {
a = this$.perobj;
this$.WM = a$getWeight() * this$.m;
a$setW...