C# 클래스 LCM.LCM.MessageAggregator

Accumulates received LCM messages in a queue.

{@link LCM} normally delivers messages asynchronously by invoking the {@link LCMSubscriber#messageReceived messageReceived} method on a subscriber as soon as a message is received. This class provides an alternate way to receive messages by storing them in an internal queue, and then delivering them to synchronously to the user.

The aggregator has configurable limits. If too many messages are aggregated without having been retrieved, then older messages are discarded.

상속: LCMSubscriber
파일 보기 프로젝트 열기: mlab-upenn/arch-apex

공개 메소드들

메소드 설명
GetNextMessage ( ) : Message

Retrieves the next message, waiting if necessary.

GetNextMessage ( long timeoutMs ) : Message

Attempt to retrieve the next received LCM message.

MessageReceived ( LCM lcm, string channel, LCMDataInputStream dins ) : void

Internal method, called by LCM when a message is received.

메소드 상세

GetNextMessage() 공개 메소드

Retrieves the next message, waiting if necessary.
public GetNextMessage ( ) : Message
리턴 Message

GetNextMessage() 공개 메소드

Attempt to retrieve the next received LCM message.
public GetNextMessage ( long timeoutMs ) : Message
timeoutMs long
리턴 Message

MessageReceived() 공개 메소드

Internal method, called by LCM when a message is received.
public MessageReceived ( LCM lcm, string channel, LCMDataInputStream dins ) : void
lcm LCM
channel string
dins LCMDataInputStream
리턴 void