genericFunction-class(methods)
genericFunction-class()所属R语言包:methods
Generic Function Objects
通用功能对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Generic functions (objects from or extending class genericFunction) are extended function objects, containing information used in creating and dispatching methods for this function. They also identify the package associated with the function and its methods.
通用函数(对象或扩展类genericFunction)扩展函数对象,包含此功能的方法创建和调度使用的信息。他们还确定的功能和它的方法与相关的包。
类的对象----------Objects from the Class----------
Generic functions are created and assigned by setGeneric or setGroupGeneric and, indirectly, by setMethod.
通用功能setGeneric或setGroupGeneric“,间接创造和分配,由setMethod。
As you might expect setGeneric and setGroupGeneric create objects of class "genericFunction" and "groupGenericFunction" respectively.
正如您可能期望setGeneric和setGroupGeneric创建类对象"genericFunction"和"groupGenericFunction"分别。
插槽----------Slots----------
.Data: Object of class "function", the function definition of the generic, usually created
.Data:Object类的"function",通用的函数定义,通常创建
generic: Object of class "character", the
generic类"character",对象
package: Object of class "character", the name of the package to which the function definition belongs (and not necessarily where the generic function is stored). If the package is not specified explicitly in the call to setGeneric, it is usually the package on which
package:Object类的"character",包,函数的定义属于(不一定通用功能存储)的名称。如果包没有指定调用setGeneric在明确,它通常是包
group: Object of class "list", the group or
group类"list",组或对象
valueClass: Object of class "character"; if not an empty character vector, identifies one or more classes. It is asserted that all methods for this function return objects
valueClass:Object类的"character";如果不是一个空的字符向量,确定一个或多个类。它是断言,这个函数的返回对象的所有方法
signature: Object of class "character", the vector of formal argument names that can appear in the signature of methods for this generic function. By default, it is all the formal arguments, except for .... Order matters for efficiency: the most commonly used arguments in
signature:Object类的"character",正式的参数名可以出现在这个泛型函数的方法签名的向量。默认情况下,它是所有的正式参数,除了....效率:最常用的参数在订购事宜
default: Object of class "optionalMethod" (a union of classes "function" and "NULL"), containing the default method for this function if any. Generated
default:Object类的"optionalMethod"(A类工会"function"和"NULL"),如果任何包含此功能的默认方法。产生
skeleton: Object of class "call", a slot used internally in method dispatch. Don't expect to use it
skeleton:Object类的"call",插槽使用内部方法调度。不要指望用它
延伸----------Extends----------
Class "function", from data part.<br> Class "OptionalMethods", by class "function".<br> Class "PossibleMethod", by class "function".
类"function",从数据的一部分。参考类"OptionalMethods",类"function"。参考类"PossibleMethod"类"function"。
方法----------Methods----------
Generic function objects are used in the creation and dispatch of formal methods; information from the object is used to create methods list objects and to merge or update the existing methods for this generic.
泛型函数对象用于在形式化方法的建立和调度信息用于创建对象的方法列表对象,合并或更新现有的方法,这种通用。
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|