makeClassRepresentation       package:methods       R Documentation

_C_r_e_a_t_e _a _C_l_a_s_s _D_e_f_i_n_i_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     Constructs a `classRepresentation-class' object to describe a
     particular class.  Mostly a utility function, but you can call it
     to create a class definition without assigning it, as `setClass'
     would do.

_U_s_a_g_e:

     makeClassRepresentation(name, slots=list(), superClasses=character(),
               prototype=NULL, package, validity, access, version, sealed, virtual=NA)

_A_r_g_u_m_e_n_t_s:

    name: character string name for the class 

   slots: named list of slot classes as would be supplied to
          `setClass', but without the unnamed arguments for
          superClasses if any. 

superClasses: what classes does this class extend 

prototype: an object providing the default data for the class, e.g, the
          result of a call to `prototype'. 

 package: The character string name for the package in which the class
          will be stored; see `getPackageName'. 

validity: Optional validity method.  See `validObject', and the
          discussion of validity methods in the reference.

  access: Access information.  Not currently used. 

 version: 

  sealed: 

 virtual: Is this known to be a virtual class? 

_R_e_f_e_r_e_n_c_e_s:

     The R package `methods' implements, with a few exceptions, the
     programming interface for classes and methods in the book
     Programming with Data (John M. Chambers, Springer, 1998), in
     particular sections 1.6, 2.7, 2.8, and chapters 7 and 8.

     While the programming interface for the methods package follows
     the reference, the R software is an original implementation, so
     details in the reference that reflect the S4 implementation may
     appear differently in R.  Also, there are extensions to the
     programming interface developed more recently than the reference. 
     For a discussion of details and ongoing development, see the web
     page  <URL: http://developer.r-project.org/methodsPackage.html>
     and the pointers from that page.

_S_e_e _A_l_s_o:

     `setClass'

