public abstract class BoolDist extends Distribution
Constructor and Description |
---|
BoolDist(Model owner,
java.lang.String name,
boolean showInReport,
boolean showInTrace)
Constructs a distribution returning boolean samples.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
sample()
Abstract method should return the specific sample as a boolean value 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, setSeed
getCorrespondingSchedulable, getDescription, getObservations, getReporter, incrementObservations, incrementObservations, reportIsOn, reportOff, reportOn, resetAt, setCorrespondingSchedulable, setDescription, setReporter
current, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOn
getName, getQuotedName, toString
public BoolDist(Model owner, java.lang.String name, boolean showInReport, boolean showInTrace)
owner
- Model : The distribution's ownername
- java.lang.String : The distribution's nameshowInReport
- boolean : Flag to show distribution in reportshowInTrace
- boolean : Flag to show distribution in tracepublic abstract boolean 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 Distribution
Object
.