Consumer-class(Streamer)
Consumer-class()所属R语言包:Streamer
Class "Consumer"
“消费类”
译者:生物统计家园网 机器人LoveR
描述----------Description----------
A virtual base class representing components that can consume data from a Producer, and yield data to the user or other Consumer instances. A Consumer typically transforms records from one form to another. Producer and Consumer instances are associated with each other through the stream function or using the connect function.
一个虚基类的组件,可以消耗Producer和产量数据给用户的数据或其他Consumer实例。一个Consumer通常从一种形式转换记录。 Producer和Consumer实例相互关联,通过stream功能或使用connect功能。
方法----------Methods----------
Methods defined on this class include:
在这个类中定义的方法包括:
stream signature(x = "Consumer", ...): see
流signature(x = "Consumer", ...):见
show signature(object = "Consumer"): Display the
显示signature(object = "Consumer"):显示
领域----------Fields----------
inputPipe: Object of class Streamer, representing the Producer or Consumer connected up-stream to
inputPipe:Streamer,代表类Producer或Consumer连接,流对象
.records: Object of classlist which is used as a
.records:list类对象被用作
The Consumer class inherits the fields yieldSize, verbose and inUse from the virtual Streamer class. Please refer to the Streamer class for more details.
Consumer类继承的领域yieldSize,verbose和inUse从虚拟Streamer类。更多详细信息,请参阅Streamer类。
基于类的方法----------Class-Based Methods----------
initialize(..., inputPipe): A method to initialize the fields of the Consumer class.
initialize(..., inputPipe):一个方法来初始化Consumer类领域。
inputPipe: An object of class Streamer connected up-stream to it. The class could be a Consumer or Producer
inputPipe:一个类的对象Streamer连接流。类可能是一个Consumer或Producer
...: Additonal arguments, currently unused.
...:产生额外的参数,目前尚未使用。
verbose: A logical(1) instance indicating whether methods invoked on the class should be reported to the
verbose:logical(1)实例,指示是否调用类的方法,应上报
reset(): Return the result of delegating
reset():返回下放的结果
yield(): Return the result of delegating
yield():返回下放的结果
inputs(): Return a character vector
inputs():返回一个character向量
status{}: Reports the status of the Consumer class. A list of the status of the length of the object in the .records field, the classes connected to the inputPipe field and the status of the fields
status{}:报告Consumer类的状态。一个list状态.records领域对象的长度,连接类的inputPipe领域和该领域的地位
.fill(): An internal method that fills the .records
.fill():一个内部方法,填补了.records
.add(input): An internal method that appends the value passed to the argument
.add(input):一个内部方法,追加值传递的参数
作者(S)----------Author(s)----------
Martin Morgan <a href="mtmorgan@fhcrc.org">mtmorgan@fhcrc.org</a>
参见----------See Also----------
Streamer-package, Streamer-class, Producer-class, Stream-class.
Streamer-package,Streamer-class,Producer-class,Stream-class。
举例----------Examples----------
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|