英語 での A discrete event message の使用例とその 日本語 への翻訳
{-}
-
Colloquial
-
Ecclesiastic
-
Computer
-
Programming
A discrete event message triggers the Random Number block.
The trading block then outputs a discrete event message that contains the order key.
A discrete event message containing this information will trigger the Value Bucket block.
The Generator block generates and pushes a discrete event message downstream, triggering the Loop block.
A discrete event message through the input port triggers the MsgInfoExtractor block.
When the Discrete Order block successfully generates an order,the block outputs a discrete event message.
A discrete event message generated within a virtualized block may exit the block through a discrete output port.
When it receives an order add confirmation,the block generates a discrete event message through its Add Ok output port.
However, a discrete event message can only carry information regarding an order execution, submission, modification, and deletion.
The Value Bucket block operates in the following manner: A discrete event message received through the store port triggers the Value Bucket block.
Whenever a discrete event message enters the virtualized block via this pathway,a fresh copy is created, with each copy operating independently of others.
Virtualize to allow new copies of thegrouped block to be created every time a discrete event message enters the virtualized group block.
For instance, a discrete event message generated from a fill will contain a numeric value in the fillPrice and the fillQuantity fields.
The user must group a set of blocks, virtualize the group,and then link a discrete event message pathway into the virtualized group block.
Value Accumulator block The Value Accumulator block accumulates a user-specifiednumeric value when it is triggered by a discrete event message.
Example The Single Order Container receives a discrete event message with information about an existing order and takes control of that order.
Example The Loop block starts a three-interation loop(as specified through its times input port)when the Generator block sends a discrete event message through the Loop block's enter port.
Every time a trade occurs, the block fires a discrete event message containing the information regarding the trade, including the trade price and trade quantity.
Example The MsgInfo Extractor block,configured to extract the fill quantity and fill price receives a discrete event message representing a fill from the Order block.
The Value Injector block receives a discrete event message and either adds new message fields or overwrites one or more of the existing message fields and sends the modified discrete message through its output port.
In the following example,suppose that the Value Bucket block is triggered by a discrete event message every time a trade occurs in a given instrument.
The Discrete Order block is a trading block that submits a"one-shot" order for the specified instrument at the price andquantity specified by the user every time it receives a discrete event message.
Whenever a trade occurs for the specified instrument,the Time And Sales block outputs a discrete event message containing information regarding the last trade trade price or quantity.
To do this, the user can instruct a Value Extractor block to take a snapshot of the numeric value"1"(in the internal logic canvas, type the value"1")when triggered by a discrete event message.
Terminal block The Terminal block lets you pause orstop an algorithm when a discrete event message triggers the block or when the Boolean input turns TRUE.
Pass-through blocks During the propagation, when a discrete event message enters a Pass-Through block(i.e., any block which receives and passes on a discrete event message unchanged), actions occur in the following order: The continuous output values of the pass-through block itself is updated first.
Optionally, you can also set up the Value Bucket block to empty its internal hash table and reset its value to a NaN(Not A Number)when a discrete event message triggers the reset port.
Example The Demultiplexer block receives a discrete event message from the Single Order Container block, determines which type of message it received, and routes the unchanged message through the corresponding output port.
When one or more of the quoted orders are executed, the Order block receives a Fill Confirmation message from the exchange server andoutputs a discrete event message in the form of a single pulse.