vcProductCreatorDistributionMode
vcProductCreatorDistributionMode allows you to define the probability of feeding one or more types of products when a vcProductCreator object uses a FeedMode of Distribution. A distribution feed mode uses entries. Each entry is a vcDistributionModeProductLineEntry object that defines a product type and weighted probability.
Properties
| Name | Type | Access | Description |
| Interval | Expression (real) | RW |
Time to wait in seconds between creating products. Note: Pseudo-random real number generated by an expression that defines a distribution. normal([stream], u, s) exponential([stream], lambda) gamma([stream], k, theta) lognormal([stream], u, s) triangular([stream], min, mode, max) uniform([stream], a, b) weibull([stream], k, lambda) |
| Limit |
Integer |
RW |
Number of products to create. Must be 0 or greater. |
| ProductEntries | List of vcDistributionModeProductLineEntry | R |
List of all currently defined entries.
|
| RandomStream | Integer | RW | Index of the pseudo-random number generator to use when picking the next product type to instantiate. Must be in inclusive range 0-63. |
Methods
| Name | Return Type | Parameters | Description |
| addProductEntry | vcDistributionModeProductLineEntry | vcProductType productType, Real probability | Adds a new entry to the distribution mode configuration based on the given productType and probability. Notes:
|
|
getProperty |
vcProperty | String name | Returns a property matching a given name; otherwise returns None. |
| removeProductEntry | None | vcDistributionModeProductLineEntry entry | Deletes the given entry from this configuration. |
Events
| Name | Parameters | Description |
| OnProductEntriesChanged |
Triggered when the ProductEntries collection content has changed. |