Sage Modeling and Simulation Library

MaterialService..::..Setup Method (IMaterial, Double, IPort)

Performs setup for utilization of this MaterialService. This involves acquiring a service token (if we are limited to a given number of available tokens), reserving the material that will be transferred (if we are going to physically transfer materials), and reserving the delivery capacity (if we are limiting overall available capacity).

Namespace:  Highpoint.Sage.Materials
Assembly:  Sage4 (in Sage4.dll)


public Object Setup(
	IMaterial material,
	double deliveryRate,
	IPort otherGuysPort


Type: Highpoint.Sage.Materials.Chemistry..::..IMaterial
The material we will be transferring. Null if no material will be transferred.
Type: Double
The amount of capacity this request will use. Units are kilograms per minute, by default.
Type: Highpoint.Sage.ItemBased.Ports..::..IPort
The resource-user's desired source or sink port.

Return Value

An opaque object that must be fed back to this MaterialService during subsequent stages of the usage of this operation.