Sage Modeling and Simulation Library

MaterialService Class

A MaterialService manages a set of connection tokens (a discrete, replenishable resource), an available capacity (a continuous, replenishable resource) and a set of compartments which are MaterialResourceItems. A Compartment can be thought of as a "bucket" with material in it, and a specified capacity & overbooking setting. Overbooking means that you can, for example, take more than is actually there.

There is a mode setting called "Wildcard mode". When set to true, and a charge or discharge is requested involving a material that the MaterialService does not already have, a compartment is created with an infinite capacity for the desired material, and infinite overbooking permitted so that it may receive or supply as much as you need. The quantity will start at zero, and will always reflect the amount that has been put in (if positive) or taken out (if negative). When "Wildcard" is set to false, In order to complete a requested activity, (charge or discharge) there must be a compartment of the correct MaterialTypes, and with sufficient quantity, if requesting a charge, or capacity, if requesting a discharge.

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


public class MaterialService : IModelObject, 

Inheritance Hierarchy