Main
Overview
Getting Started
Components
Videos
Sample Files

simulation components, logic, intelligence, patterns
AIB2 Components - Diminishing Quantity
Category: Utility
  Description:
The Diminishing Quantity component is a utility component to facilitate simulation, where the system needs to function on a proxy resource. This can function as a testing proxy for any external consumable resource that has quantity and can change in value given relative activity. Many potential applications exist, such as banking levels, fuel levels, biological capacity, hydraulic systems, food and water, etc.., Utilize the auto-decrement feature and or the dynamic controllable decrement feature through a connected input to control the out flow of this resource. Use the increment feature to re-fill. Consider the information provided by the outputs to make further usage decisions based on custom logic given the resource state. Add as many of these components as necessary to complete the most accurate real-world situation. See the information in the tables below for detail relative to each of the inputs and outputs.
 

  Inputs: 4
Input Name:
Description:
Enable
Boolean input of 1 or 0, ON or OFF, enabling or disabling auto-diminish feature. Default is ON.
Reset to Max
Each cycle of execution checks this value to determine if a reset should be performed on the Amount Remaining value. A non-zero value here will cause a reset of current value to the container maximum.
Decrement (consume)
Input value of type double that decrements the current Amount Remaining value. This input should be positive for decrements. The component will prevent over use (Amount Remaining value becoming negative).
Increment (fill)
Input value of type double that increments the current Amount Remaining value. This input should be positive for increments. The component will prevent over filling (Amount Remaining value exceeding container maximum)

 

  Outputs: 4
Output Name:
Description:
Amount Remaining
Output value of type double representing the current amount remaining of the item quantity. This value will always fall between the min and max container values.
Container Max
Output value of type double that is the current maximum amount the container can hold. This is set by the user in the properties dialog box.
Container Min
Output value of type double that is the current minimum amount the container will allow the Amount Remaining value to become. This is set by the user in the properties dialog box.
Empty?
Boolean output value serving as flag indicating whether the container is currently empty - i.e. at its minimum. It has value of 1 (displayed as YES) if the container is empty, and 0 if not.

 

  Components in Same Category: Timer
Counter Reset on Value
Counter Reset on Event
Constant (k)
RandNum Generator
Integrated Logbook
CSV Data Feed
Match Count
Sim Action Stop
Sim Action Sound
Sim Action Message
Sim Info SimTime
Sim Info Count
Sim Info LocalTime
User Control Button
Data Value Storage
Sim Action Format
Indicator Light
7-Segment LED
Integrated Column Chart
8x8 LED Controller
8x8 LED Display
User Button Up Down
Dynamic Sim Value
Do Once


  Sample Files with this Component:
 



Copyright © TinMan Systems, Inc. 2010-2015. All Rights Reserved.
Questions or comments: support@tinmansystems.com