Choice Method (PortSet)
Microsoft Robotics Studio
Creates a choice arbiter with a branch for each port in the port set
Namespace: Microsoft.Ccr.Core
Assembly: Ccr.Core (in Ccr.Core.dll)
Version: 1.5.507.0
Syntax
public static Choice Choice(
PortSet portSet
)
'Declaration
Public Shared Function Choice ( _
portSet As PortSet _
) As Choice
public:
static Choice^ Choice (
PortSet^ portSet
)
Parameters
- portSet
PortSet
PortSet instance to create Choice with
Return Value
Instance of Choice Arbiter
Remarks
A non-persisted receiver is attached to each port on the port set and used as a branch in the Choice arbiter. When the first item arrives on any of the ports within the port set, the receiver simply posts the item back, allowing the choice to complete. Use this method within iterators, followed by a call to the Test method on the port set to retrieve the item or by simply assigning the port set to a variable of one of the PortSet types
See Also
Arbiter Class
Microsoft.Ccr.Core Namespace