public class ArrivalProcess extends SimEntityBase
Simplest non-trivial Event Graph. A basic arrival process that can have any interarrival probability distribution.
Modifier and Type | Field and Description |
---|---|
private RandomVariate |
interarrivalTimeGenerator
The interarrival distribution (parameter)
|
protected int |
numberArrivals
The number of arrivals (state variable)
|
eventList, property
DEFAULT_ENTITY_NAME, DEFAULT_EVENT_NAME, DEFAULT_PRIORITY, EVENT_METHOD_PREFIX, NL
Constructor and Description |
---|
ArrivalProcess() |
ArrivalProcess(RandomVariate interarrivalTimeGenerator)
Construct an
ArrivalProcess instance with given interarrival
distribution. |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
description() |
void |
doArrival()
Arrival event.
|
void |
doRun()
Schedules the first arrival.
|
void |
doStopArrivals()
Cancels the pending Arrival event, stopping the arrival process.
|
RandomVariate |
getInterarrivalTimeGenerator() |
int |
getNumberArrivals()
Returns the current number of arrivals.
|
java.lang.String |
paramString() |
void |
reset()
Resets the number of arrivals to 0
|
void |
setInterarrivalTimeGenerator(RandomVariate interarrivalTimeGenerator) |
static java.lang.String |
usage()
Returns a String containing usage information for the main method.
|
coldReset, dumpDoMethods, dumpDoMethodsStr, dumpNamesAndSignatures, dumpNamesAndSignaturesStr, getFullMethodName, getSignatureString, handleSimEvent, isAssignableFrom, isDebug, processSimEvent, setDebug, stopAtTime, stopOnTime
addPropertyChangeListener, addPropertyChangeListener, attemptSchedule, clearAddedProperty, compareTo, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAddedProperties, getEventList, getEventListID, getName, getPriority, getPropertiesString, getProperty, getProperty, getPropertyChangeListeners, getSerial, interrupt, interrupt, interruptAll, interruptAll, interruptAll, interruptAllWithArgs, interruptAllWithArgs, isClearAddedPropertiesOnReset, isJustDefinedProperties, isPersistant, isReRunnable, isVerbose, parametersMatch, removePropertyChangeListener, removePropertyChangeListener, resetNextSerial, setClearAddedPropertiesOnReset, setEventList, setEventListID, setJustDefinedProperties, setName, setPersistant, setPriority, setProperty, setVerbose, toString, waitDelay, waitDelay, waitDelay, waitDelay
addSimEventListener, getSimEventListeners, notifyListeners, removeSimEventListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSimEventListener, getSimEventListeners, notifyListeners, removeSimEventListener
private RandomVariate interarrivalTimeGenerator
protected int numberArrivals
public ArrivalProcess()
public ArrivalProcess(RandomVariate interarrivalTimeGenerator)
ArrivalProcess
instance with given interarrival
distribution. The distribution must generate values that are >= 0.
This is the preferred way to construct and ArrivalProcess instance.interarrivalTimeGenerator
- The interarrival distribution
RandomVariatepublic void reset()
reset
in interface ReRunnable
reset
in class BasicSimEntity
public void doRun()
public void doArrival()
public void doStopArrivals()
public RandomVariate getInterarrivalTimeGenerator()
public void setInterarrivalTimeGenerator(RandomVariate interarrivalTimeGenerator)
public int getNumberArrivals()
public java.lang.String paramString()
public static java.lang.String usage()
public static java.lang.String description()