Learn R Programming

traitr (version 0.14)

Model: Trait for a model object.

Description

Model objects consist of properties and the methods that manipulate them Models are initialized by init so that getter and setter pairs are made When setter functions are called, the model's observers are notified

Usage

Model

Arguments

Format

proto object 
 $ remove_observer :function (., observer)   
  ..- attr(*, "srcref")=Class 'srcref'  atomic [1:8] 86 45 92 27 45 27 86 92 
  .. .. ..- attr(*, "srcfile")=Classes 'srcfilecopy', 'srcfile'   
 $ setattr         :function (., key, value, notify_private = TRUE)   
  ..- attr(*, "srcref")=Class 'srcref'  atomic [1:8] 116 37 122 27 37 27 116 122 
  .. .. ..- attr(*, "srcfile")=Classes 'srcfilecopy', 'srcfile'   
 $ class           : chr [1:2] "Model" "TraitR" 
 $ init            :function (.)   
  ..- attr(*, "srcref")=Class 'srcref'  atomic [1:8] 128 34 139 27 34 27 128 139 
  .. .. ..- attr(*, "srcfile")=Classes 'srcfilecopy', 'srcfile'   
 $ list_observers  :function (.)   
  ..- attr(*, "srcref")=Class 'srcref'  atomic [1:8] 97 41 97 64 41 64 97 97 
  .. .. ..- attr(*, "srcfile")=Classes 'srcfilecopy', 'srcfile'   
 $ getattr         :function (., key)   
  ..- attr(*, "srcref")=Class 'srcref'  atomic [1:8] 107 37 107 70 37 70 107 107 
  .. .. ..- attr(*, "srcfile")=Classes 'srcfilecopy', 'srcfile'   
 $ add_observer    :function (., observer)   
  ..- attr(*, "srcref")=Class 'srcref'  atomic [1:8] 71 42 80 27 42 27 71 80 
  .. .. ..- attr(*, "srcfile")=Classes 'srcfilecopy', 'srcfile'   
 $ notify_observers:function (., key = NULL, value = NA, old_value = NA, notify_private = TRUE)   
  ..- attr(*, "srcref")=Class 'srcref'  atomic [1:8] 47 46 64 27 46 27 47 64 
  .. .. ..- attr(*, "srcfile")=Classes 'srcfilecopy', 'srcfile'   
 parent: proto object