Rev 20330 | Rev 23531 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{makeClassRepresentation}\alias{makeClassRepresentation}\title{ Create a Class Definition }\description{Constructs a \code{\link{classRepresentation-class}} object todescribe a particular class. Mostly a utility function, but you cancall it to create a class definition without assigning it, as\code{\link{setClass}} would do.}\usage{makeClassRepresentation(name, slots=list(), superClasses=character(),prototype=NULL, package, validity, access, virtual=NA)}\arguments{\item{name}{ character string name for the class }\item{slots}{ named list of slot classes as would be supplied to\code{setClass}, but \emph{without} the unnamed arguments for superClasses if any. }\item{superClasses}{ what classes does this class extend }\item{prototype}{ an object providing the defaultdata for the class, e.g, the result of a call to \code{\link{prototype}}. }\item{package}{ The character string name for the package in whichthe class will be stored; see \code{\link{getPackageName}}. }\item{validity}{Optional validity method. See\code{\link{validObject}}, and the discussion of validitymethods in the reference.}\item{access}{Access information. Not currently used.}\item{virtual}{ Is this known to be a virtual class? }}\references{The R package \code{methods} implements, with a few exceptions, theprogramming interface for classesand methods in the book \emph{Programming with Data} (JohnM. 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 inthe reference that reflect the S4 implementation may appeardifferently in R. Also, there are extensions to the programminginterface developed more recently than the reference. For adiscussion of details and ongoing development, see the web page\url{http://developer.r-project.org/methodsPackage.html} and thepointers from that page.}\seealso{ \code{\link{setClass}} }\keyword{programming}\keyword{classes}