Sage Modeling and Simulation Library

SimpleOutputPort Constructor

Creates a simple output port. 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 SimpleOutputPort(
	IModel model,
	string name,
	Guid guid,
	IPortOwner owner,
	DataProvisionHandler takeHandler,
	DataProvisionHandler peekHandler
)

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 will own this port.
takeHandler
Type: Highpoint.Sage.ItemBased.Ports..::..DataProvisionHandler
The delegate that will be called when a peer calls 'Take()'. Null is okay.
peekHandler
Type: Highpoint.Sage.ItemBased.Ports..::..DataProvisionHandler
The delegate that will be called when a peer calls 'Peek()'. Null is okay.