Class ArrivalsStationary
- java.lang.Object
-
- jasima.core.random.continuous.DblSequence
-
- jasima.core.simulation.arrivalprocess.ArrivalProcess
-
- jasima.core.simulation.arrivalprocess.ArrivalsStationary
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ArrivalsStationary extends ArrivalProcess
This class can be used to create a stationary arrival process which can be described by a certain sequence of inter-arrival times (using, e.g.,DblDistribution).- Author:
- Torsten Hildebrandt, 2012-08-07
- See Also:
DblSequence, Serialized Form
-
-
Field Summary
-
Fields inherited from class jasima.core.simulation.arrivalprocess.ArrivalProcess
isFirst, state
-
Fields inherited from class jasima.core.random.continuous.DblSequence
rndGen
-
-
Constructor Summary
Constructors Constructor Description ArrivalsStationary()ArrivalsStationary(DblSequence interArrivalTimes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DblSequenceclone()Clones the current number stream.DblSequencegetInterArrivalTimes()voidinit()Initializes this stream.doublenextDbl()Returns the next number in this number stream.voidsetInterArrivalTimes(DblSequence interArrivalTimes)voidsetRndGen(Random rndGen)Sets the random number generator to be used if this stream has a random component.-
Methods inherited from class jasima.core.simulation.arrivalprocess.ArrivalProcess
getInitialState, getNumericalMean, getValueRange, isArrivalAtTimeZero, setArrivalAtTimeZero, setInitialState
-
Methods inherited from class jasima.core.random.continuous.DblSequence
createStreamDefFromStream, getName, getRndGen, max, min, setName
-
-
-
-
Constructor Detail
-
ArrivalsStationary
public ArrivalsStationary()
-
ArrivalsStationary
public ArrivalsStationary(DblSequence interArrivalTimes)
-
-
Method Detail
-
init
public void init()
Description copied from class:DblSequenceInitializes this stream. This method is supposed to be called once before repeated calls toDblSequence.nextDbl()can be made.- Overrides:
initin classArrivalProcess
-
nextDbl
public double nextDbl()
Description copied from class:DblSequenceReturns the next number in this number stream.- Specified by:
nextDblin classArrivalProcess
-
setRndGen
public void setRndGen(Random rndGen)
Description copied from class:DblSequenceSets the random number generator to be used if this stream has a random component.- Overrides:
setRndGenin classDblSequence
-
clone
public DblSequence clone()
Description copied from class:DblSequenceClones the current number stream. This method fails with aCloneNotSupportedExceptionif there is a random number generator associated with this stream.- Overrides:
clonein classDblSequence
-
getInterArrivalTimes
public DblSequence getInterArrivalTimes()
-
setInterArrivalTimes
public void setInterArrivalTimes(DblSequence interArrivalTimes)
-
-