public class HyperArrayLookup<C extends java.lang.Enum<C>> extends AbstractStochasticItem implements java.io.Serializable
Since Dimension values will typically be returned from simulation Agents (e.g. querying death-in-year for an agent of particular gender and age-range), enums which match the dimensions need to be used internally, with the (zero-based) ordinals of given enum values used for querying this lookup.
As examples,
Constructor and Description |
---|
HyperArrayLookup(java.lang.Class<C> categoryEnumType,
com.anylogic.engine.HyperArray hyperArray) |
Modifier and Type | Method and Description |
---|---|
C |
sampleCategory(DimConvertable... dimIndexSources) |
Sampler.Binary |
sampleTrialOutcome(DimConvertable... dimIndexSources) |
getSampler, registerAccessInfo, registerSampler
public HyperArrayLookup(java.lang.Class<C> categoryEnumType, com.anylogic.engine.HyperArray hyperArray)
public C sampleCategory(DimConvertable... dimIndexSources)
public Sampler.Binary sampleTrialOutcome(DimConvertable... dimIndexSources)