PushConsumer

Parent Previous Next

Data_Access / Corba
Block Name: PushConsumer

Code File Location: VisualSim/actor/corba/PushConsumer

Description

PushConsumer receives data from a remote publisher. Specify the ORB initial property with the ORBInitProperties  parameter. For example: "-ORBInitialHost xyz.mirabilisdesign.com -ORBInitialPort 1050" where "xyz.mirabilisdesign.com" is the server name, and "1050" is the port for name service. Specify the name of the consumer with ConsumerName, which is registed on the name server. If the blocking paremerter is true, then wait until there is token received, otherwise, send a default value specified by the defaultToken paremerter. Notice that the type of the output port is determined by the type of this parameter.


Parameter

Explanation

Type

Example

ORBInitProperties

It is the ORB initial property.  


"-ORBInitialHost xyz.mirabilisdesign.com -ORBInitialPort 1050"

consumerName

The name of the consumer.  

StringToken


blocking

Indicate the actor blocks when it does not receive data. The default value is false.

BooleanToken


defaultToken

The default token. If the actor is nonblocking and there is no new token received after the last fire() method call, then this token will be output when the fire() method is called. The default value is 0.0. Notice that the type of the output port is determined by the type of this parameter.

double




Port

Explanation

Type

trigger

The input port.

unknown

output

The output port.

double





 

Created with the Personal Edition of HelpNDoc: Free Kindle producer