| Line 21... |
Line 21... |
| 21 |
\section{Slots}{\describe{
|
21 |
\section{Slots}{\describe{
|
| 22 |
|
22 |
|
| 23 |
\item{\code{argument}:}{Object of class \code{"name"}. The name of the
|
23 |
\item{\code{argument}:}{Object of class \code{"name"}. The name of the
|
| 24 |
argument being used for dispatch at this level. }
|
24 |
argument being used for dispatch at this level. }
|
| 25 |
\item{\code{methods}:}{A named list of the methods (and method lists)
|
25 |
\item{\code{methods}:}{A named list of the methods (and method lists)
|
| 26 |
defined \emph{explicitly} for this argument.
|
26 |
defined \emph{explicitly} for this argument.
|
| 27 |
The names are the names of classes, and the corresponding
|
27 |
The names are the names of classes, and the corresponding
|
| 28 |
element defines the method or methods to be used if the corresponding
|
28 |
element defines the method or methods to be used if the corresponding
|
| 29 |
argument has that class. See the details below.}
|
29 |
argument has that class. See the details below.}
|
| 30 |
\item{\code{allMethods}:}{A named list, contains
|
30 |
\item{\code{allMethods}:}{A named list, contains
|
| 31 |
all the directly defined methods from the \code{methods} slot, plus
|
31 |
all the directly defined methods from the \code{methods} slot, plus
|
| Line 42... |
Line 42... |
| 42 |
generally be either a function or another methods list object.
|
42 |
generally be either a function or another methods list object.
|
| 43 |
|
43 |
|
| 44 |
In the first case, the function defines the method to use for any call
|
44 |
In the first case, the function defines the method to use for any call
|
| 45 |
in which \code{x} is of class \code{"track"}. In the second case, the
|
45 |
in which \code{x} is of class \code{"track"}. In the second case, the
|
| 46 |
new methods list object defines the available methods depending on
|
46 |
new methods list object defines the available methods depending on
|
| 47 |
the remaining formal arguments, in this example, \code{y}.
|
47 |
the remaining formal arguments, in this example, \code{y}.
|
| 48 |
|
48 |
|
| 49 |
Each method corresponds conceptually to a \emph{signature};
|
49 |
Each method corresponds conceptually to a \emph{signature};
|
| 50 |
that is a named list of classes, with names corresponding to some or
|
50 |
that is a named list of classes, with names corresponding to some or
|
| 51 |
all of the formal arguments. In the previous example, if selecting
|
51 |
all of the formal arguments. In the previous example, if selecting
|
| 52 |
class \code{"track"} for \code{x}, finding that the selection was
|
52 |
class \code{"track"} for \code{x}, finding that the selection was
|