E - the element typepublic abstract class EntityDist<E extends Entity> extends Distribution
| Constructor and Description |
|---|
EntityDist(Model owner,
java.lang.String name,
boolean showInReport,
boolean showInTrace)
Constructs a distribution returning entity samples.
|
| Modifier and Type | Method and Description |
|---|---|
abstract E |
sample()
Abstract method should return the specific sample (type Entity) when
implemented in subclasses.
|
java.lang.Object |
sampleObject()
Convenience method to return the distribution's sample as
Object. |
changeRandomGenerator, createDefaultReporter, getInitialSeed, getNonNegative, getNumSamples, isAntithetic, reset, reset, setAntithetic, setNonNegative, setSeedgetCorrespondingSchedulable, getDescription, getObservations, getReporter, incrementObservations, incrementObservations, reportIsOn, reportOff, reportOn, resetAt, setCorrespondingSchedulable, setDescription, setReportercurrent, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOngetName, getQuotedName, toStringpublic EntityDist(Model owner, java.lang.String name, boolean showInReport, boolean showInTrace)
owner - Model : The distribution's ownername - java.lang.String : The distribution's nameshowInReport - the show in reportshowInTrace - boolean : Flag to show distribution in tracepublic abstract E sample()
public java.lang.Object sampleObject()
Object.
For type safety, method sample() should be preferred. However,
this method is useful for environments requiring a non-genetic access point
to obtain samples from any distribution.sampleObject in class DistributionObject.