Share via


PortSet(T0, T1) Members

Microsoft Robotics Class Reference

The PortSet< (Of < ( <'T0, T1> ) > ) > type exposes the following members.

Constructors

  Name Description
Public method PortSet< (Of < ( <'T0, T1> ) > ) >() () () ()
Constructs a PortSet using individual Port

Methods

  Name Description
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method Post(T0)
Enqueues a message instance
Public method Post(T1)
Enqueues a message instance
Public method PostUnknownType
Untyped post of a message.
Public method Test< (Of < <' (T> ) > > )
Atomically removes a message from the port, or returns null if none present
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public method TryPostUnknownType
Attempts unsafe (untyped) post of a message instance.

Remarks

Use to avoid possible exception thrown if message type is incompatible with the port

Operators

  Name Description
Public operatorStatic member Implicit Widening Implicit Implicit Implicit(PortSet< (Of < <' (T0, T1> ) > > ) to Choice)
Implicitly creates a Choice Arbiter with one receiver per type. When a branch is chosen, a delegate will post the item back in the port set
Public operatorStatic member Implicit Widening Implicit Implicit Implicit(PortSet< (Of < <' (T0, T1> ) > > ) to T1)
Invoke the Test method to extract an item of this type
Public operatorStatic member Implicit Widening Implicit Implicit Implicit(PortSet< (Of < <' (T0, T1> ) > > ) to Port< (Of < <' (T0> ) > > ))
Convert to the 0th PortSet

Properties

  Name Description
Public property Item
Returns the port instance used to store items of specified type
Public property Mode
Port operation mode
Public property P0
Returns the port 0th port in this collection.

Remarks

Index is 0-based.
Public property P1
Returns the port 1th port in this collection.

Remarks

Index is 0-based.
Public property Ports
Array of single queue ports for each generic type in this port instance

Remarks

If the mode of operation is PortSetMode.SharedPort, the single shared port instance is returned
Public property SharedPort
Common port instance for all item types when port is set to SharedMode

See Also

PortSet< (Of < ( <'T0, T1> ) > ) > Class

Microsoft.Ccr.Core Namespace