Sage Modeling and Simulation Library

SimpleInputPort Constructor

Creates a simple input port with a specified owner and handler to be called when data arrives on the port. If the handler is null, then an internal handler is used that, in effect, refuses delivery of the data. It is the responsibility of the creator to add the port to the owner's PortSet.

Namespace:  Highpoint.Sage.ItemBased.Ports
Assembly:  Sage4 (in Sage4.dll)

Syntax


public SimpleInputPort(
	IModel model,
	string name,
	Guid guid,
	IPortOwner owner,
	DataArrivalHandler dah
)

Parameters

model
Type: Highpoint.Sage.SimCore..::..IModel
The model in which this port participates.
name
Type: String
The name of the port. This is typically required to be unique within an owner.
guid
Type: Guid
The GUID of the port - also known to the PortOwner as the port's Key.
owner
Type: Highpoint.Sage.ItemBased.Ports..::..IPortOwner
The IPortOwner that owns this port.
dah
Type: Highpoint.Sage.ItemBased.Ports..::..DataArrivalHandler
The DataArrivalHandler that will respond to data arriving on this port having been pushed from its peer.