Class ArrivalProcess
- java.lang.Object
-
- jasima.core.random.continuous.DblSequence
-
- jasima.core.simulation.arrivalprocess.ArrivalProcess
-
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
ArrivalsNonStationary,ArrivalsStationary
public abstract class ArrivalProcess extends DblSequence
Base class for arrival processes, i.e., calculating absolute arrival times.- Author:
- Torsten Hildebrandt, 2012-08-07
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisFirstprotected doublestate-
Fields inherited from class jasima.core.random.continuous.DblSequence
rndGen
-
-
Constructor Summary
Constructors Constructor Description ArrivalProcess()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description doublegetInitialState()doublegetNumericalMean()A mean value for an arrival process is usually undefined, therefore this method throws anUnsupportedOperationException.Pair<Double,Double>getValueRange()This method computes the minimum and maximum support values (range of possible values) of this stream.voidinit()Initializes this stream.booleanisArrivalAtTimeZero()abstract doublenextDbl()Returns the next number in this number stream.voidsetArrivalAtTimeZero(boolean arrivalAtTimeZero)voidsetInitialState(double initialState)-
Methods inherited from class jasima.core.random.continuous.DblSequence
clone, createStreamDefFromStream, getName, getRndGen, max, min, setName, setRndGen
-
-
-
-
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 classDblSequence
-
nextDbl
public abstract double nextDbl()
Description copied from class:DblSequenceReturns the next number in this number stream.- Specified by:
nextDblin classDblSequence
-
getNumericalMean
public double getNumericalMean()
A mean value for an arrival process is usually undefined, therefore this method throws anUnsupportedOperationException.- Overrides:
getNumericalMeanin classDblSequence
-
getValueRange
public Pair<Double,Double> getValueRange()
Description copied from class:DblSequenceThis method computes the minimum and maximum support values (range of possible values) of this stream.- Overrides:
getValueRangein classDblSequence- Returns:
- A
Paircontaining the minimum and maximum support values.
-
getInitialState
public double getInitialState()
-
setInitialState
public void setInitialState(double initialState)
-
isArrivalAtTimeZero
public boolean isArrivalAtTimeZero()
-
setArrivalAtTimeZero
public void setArrivalAtTimeZero(boolean arrivalAtTimeZero)
-
-