Sage Modeling and Simulation Library

PortSet Members

The PortSet type exposes the following members.

Constructors


  Name Description
Public method PortSet(Boolean)
Initializes a new instance of the PortSet class.
Public method PortSet()()()()
Initializes a new instance of the PortSet class with case-sensitive keys.

Methods


  Name Description
Public method AddPort
Adds a port to this object's port set.
Public method ClearPorts
Unregisters all ports.
Public method DeserializeFrom
Reconstitutes this object from the specified XmlSerializationContext.
Public method Equals(System.Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetEnumerator
Provides an enumerator over the IPort instances.
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method GetKey Obsolete.
Looks up the key associated with a particular port.
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 RemovePort
Removes a port from an object's portset. Any entity having references to the port may still use it, though this may be wrong from an application perspective.
Public method SerializeTo
Stores this object to the specified XmlSerializationContext.
Public method SetSortOrder<(Of <<'(T>)>>)
Sorts the ports based on one element of their Out-of-band data sets. Following a return from this call, the ports will be in the order requested. The "T" parameter will usually be int, double or string, but it must represent the IComparable-implementing type of the data stored under the provided OOBDataKey.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties


  Name Description
Public property Count
Gets the count of all kinds of ports in this collection.
Public property Inputs
Gets the input ports owned by this PortSet.
Public property Item[([( Guid])])
Returns the port associated with the provided key.
Public property Item[([( Int32])])
Gets the IPort with the specified index, i.
Public property Item[([( String])])
Returns the port associated with the provided name.
Public property Outputs
Gets the output ports owned by this PortSet.
Public property PortKeys
Returns a collection of the keys that belong to ports known to this PortSet.

Events


  Name Description
Public event AfterConnectionBroken
This event fires immediately after the port's connector property becomes null.
Public event AfterConnectionMade
This event fires immediately after the port's connector property becomes non-null.
Public event BeforeConnectionBroken
This event fires immediately before the port's connector property becomes null.
Public event BeforeConnectionMade
This event fires immediately before the port's connector property becomes non-null.
Public event PortAdded
Fired when a port has been added to this IPortSet.
Public event PortDataAccepted
This event is fired whenever any input port accepts data presented to it from outside or any output port accepts data presented to it from inside.
Public event PortDataPresented
This event is fired when data is presented to any input port in this PortSet from outside, or to any output port from inside.
Public event PortDataRejected
This event is fired whenever an input port rejects data that is presented to it from outside or an output port rejects data that is presented to it from inside.
Public event PortRemoved
Fired when a port has been removed from this IPortSet.