Package | Description |
---|---|
simkit |
Contains the basic functionality of simkit.
|
simkit.examples |
Useful implementations of basic event graph systems.
|
simkit.random |
A collection of Classes used to generate Random Numbers, Random
Variates, and RandomVectors.
|
simkit.smd | |
simkit.smdx |
Contains basic classes to represent the entities in a combat simulation.
|
simkit.test |
Functional tests.
|
simkit.util |
Contains a number of useful generic classes.
|
simkit.xml |
Experimental Classes for using
xml with simkit entities. |
Modifier and Type | Method and Description |
---|---|
SimEvent |
BasicSimEntity.waitDelay(java.lang.String name,
RandomVariate delayGenerator,
java.lang.Object... parameters)
Schedules an event using a RandomVariate instance to generate the delay.
|
SimEvent |
BasicSimEntity.waitDelay(java.lang.String name,
RandomVariate delayGenerator,
Priority priority,
java.lang.Object... parameters)
Schedules an event using a RandomVariate instance to generate the delay
|
Modifier and Type | Field and Description |
---|---|
private RandomVariate |
ArrivalProcess.interarrivalTimeGenerator
The interarrival distribution (parameter)
|
private RandomVariate |
ArrivalProcess2.interarrivalTimeGenerator
The RandomVariate that generates the interarrivalTimes.
|
private RandomVariate |
TransferLine.interarrivalTimeGenerator
The RandomVariate used to generate the interarrival times.
|
private RandomVariate |
ServerWithReneges.renegeTimeGenerator |
private RandomVariate |
EntityServer.serviceTimeGenerator
The RandomVariate used to generate service times.
|
private RandomVariate |
ServerWithReneges.serviceTimeGenerator |
private RandomVariate |
SimpleServer.serviceTimeGenerator
The RandomVariate used to generate service times.
|
private RandomVariate |
SimpleServer2.serviceTimeGenerator
The RandomVariate used to generate service times.
|
private RandomVariate[] |
TransferLine.serviceTimeGenerator
The RandomVariates used to generate the service times for servers at each
station.
|
Modifier and Type | Method and Description |
---|---|
RandomVariate |
ArrivalProcess.getInterarrivalTimeGenerator() |
RandomVariate |
ArrivalProcess2.getInterarrivalTimeGenerator() |
RandomVariate |
ServerWithReneges.getRenegeTimeGenerator() |
RandomVariate |
EntityServer.getServiceTimeGenerator()
Returns the RandomVariate used to generate the service times.
|
RandomVariate |
ServerWithReneges.getServiceTimeGenerator() |
RandomVariate |
SimpleServer.getServiceTimeGenerator() |
RandomVariate |
SimpleServer2.getServiceTimeGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
ArrivalProcess.setInterarrivalTimeGenerator(RandomVariate interarrivalTimeGenerator) |
void |
ArrivalProcess2.setInterarrivalTimeGenerator(RandomVariate interarrivalTimeGenerator) |
void |
ServerWithReneges.setRenegeTimeGenerator(RandomVariate renegeTimeGenerator) |
void |
EntityServer.setServiceTimeGenerator(RandomVariate st)
Sets the RandomVariate used to generate the service times.
|
void |
ServerWithReneges.setServiceTimeGenerator(RandomVariate serviceTimeGenerator) |
void |
SimpleServer.setServiceTimeGenerator(RandomVariate serviceTimeGenerator) |
void |
SimpleServer2.setServiceTimeGenerator(RandomVariate serviceTimeGenerator) |
Constructor and Description |
---|
ArrivalProcess(RandomVariate interarrivalTimeGenerator)
Construct an
ArrivalProcess instance with given interarrival
distribution. |
ArrivalProcess2(RandomVariate interarrivalTimeGenerator)
Creates a new ArrivalProcess2 using the given RandomVariate to generate
the interarrival times.
|
EntityArrivalProcess(RandomVariate interarrivalTimeGenerator) |
EntityServer(int totalNumberServers,
RandomVariate serviceTimeGenerator)
Creates a new EntityServer with the given number of servers, and service
time distribution.
|
ServerWithReneges(int totalNumberServers,
RandomVariate serviceTimeGenerator,
RandomVariate renegeTimeGenerator) |
SimpleServer(int totalNumberServers,
RandomVariate serviceTimeGenerator)
Creates a new Server with the given number of totalNumberServers and the
given service serviceTimeGenerator distribution.
|
SimpleServer2(int totalNumberServers,
RandomVariate serviceTimeGenerator)
Creates a new SimpleServer2 with the given number of servers and the
given service time distribution.
|
TransferLine(RandomVariate arrivalTime,
int[] numberOfServers,
RandomVariate[] serviceTime)
Constructs a new TransferLine.
|
TransferLine(RandomVariate arrivalTime,
int[] numberOfServers,
RandomVariate[] serviceTime)
Constructs a new TransferLine.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DiscreteRandomVariate
A RandomVariate that can only take on discrete values.
|
interface |
RandomObjectVariate<T> |
Modifier and Type | Class and Description |
---|---|
class |
AR1Variate
A simple first order auto regressive AR(1) process.
|
class |
BernoulliVariate
Generates Bernoulli random variates (either int or double).
Parameter: probability = P{X = 1} or the probability of "success"
in a single trial. |
class |
BetaVariate
Generates Beta(alpha, beta) random variates.
|
class |
BinomialVariate
Generates Binomial(n, p) random variates (representing the number of
successes in n iid Bernoulli(p) trials.
Parameters: n = number of Bernoulli trials
probability = P{X=1} for Bernoulli trials. |
class |
CompositionVariate
Generates the composition of a list of RandomVariates.
|
class |
ConstantIntegerVariate
This always generates the same
(int) value . |
class |
ConstantVariate
A "RandomVariate" class that is constant.
|
class |
ConvolutionVariate
Generates the convolution (sum) of a number of RandomVariates.
|
class |
DataVariate |
class |
DiscreteIntegerVariate
Generates random variates having an arbitrary discrete distribution with
integer val.
|
class |
DiscreteUniformVariate
Generates Discrete Uniform (a, b) random variates.
Parameters: minimum = smallest possible value (integer).
maximum = largest possible value (integer). |
class |
DiscreteVariate
Generates random variates having an arbitrary discrete distribution.
|
class |
Exponential_64Variate
Generates Exponential random variate using log transform.
|
class |
ExponentialTransform
Generates a random variate that is the exponential transform of another
random variate.
|
class |
ExponentialVariate
Generates Exponential random variate using log transform.
|
class |
FrequencyRandomObjectVariate |
class |
Gamma_64Variate
Generates Gamma(alpha, beta) random variates.
|
class |
GammaARVariate
Instances of this class generate correlated Gamma random variates based on an
approach in Gaver and Lewis (1986).
|
class |
GammaVariate
Generates Gamma(alpha, beta) random variates.
|
class |
Geometric_64Variate
Generates random variates having a Geometric distribution.
|
class |
GeometricVariate
Generates random variates having a Geometric distribution.
|
class |
IntegerTraceVariate |
class |
InverseGaussianVariate
Generates random variates having the Inverse Gaussian distribution.
|
class |
Log_64Transform
Generates random variates that are the log transform of another random variate.
|
class |
LogNormalVariate
Generates random variates from the Log Normal(μ, σ) distribution
based on the exponential transformation of a Normal.
|
class |
LogTransform
Generates random variates that are the log transform of another random variate.
|
class |
MarkovChainVariate
Instances of this class generate values from a Markov Chain with the given
transition probabilities on the state space [0,..n-1] where n is the size of
the transition matrix.
|
class |
MixedVariate
Generates random number from a mix of RandomVariates.
|
class |
NegativeBinomialVariate
Based on Devroye (1986), pp.
|
class |
NHPoissonProcess_64Variate
Generates interarrival times for a Non-homogenious (non-stationary) Poisson Process.
|
class |
NHPoissonProcessVariate
Generates interarrival times for a Non-homogenious (non-stationary) Poisson Process.
|
class |
Normal02_64Variate
Generates a Normal random variate.
|
class |
Normal02Variate
Generates a Normal random variate.
|
class |
Normal03_64Variate
Generates Normal random variates using Acceptance/Rejection
method.
|
class |
Normal03Variate
Generates Normal random variates using Acceptance/Rejection method.
|
class |
Normal04Variate
Generates Normal random variates using the Inverse Transform method
|
class |
NormalVariate
Generates Normal(μ, σ) random variate using the Box-Muller algorithm.
|
class |
NormalVariate_64
Generates Normal(mean, std) random variate using the
Box-Muller algorithm.
|
class |
NPPoissonProcessThinned_64Variate
Generates a nonhomogeneous Poisson process variate using the method of
thinning by Lewis and Shedler.
|
class |
NPPoissonProcessThinnedVariate
Generates a nonhomogeneous Poisson process variate using the method of
thinning by Lewis and Shedler.
|
class |
OscillatingExponential_64Variate
Generates an Exponential variate that is scaled by a sinusoid.
|
class |
OscillatingExponentialVariate
Generates an Exponential variate that is scaled by a sinusoid.
|
class |
PearsonTypeVVariate
Generates random variates having a Pearson Type V distribution.
|
class |
Poisson2Variate |
class |
PoissonVariate
Generates random variates having a Poisson distribution.
|
class |
RandomVariateBase
The base class for Simkit's random variate generator classes.
|
class |
RenewalProcessVariate
Generates arrival times for a renewal process.
|
class |
ResampleVariate
Generates random variates by resampling from a given data array.
|
class |
RightWedgeVariate
Generates a right wedge random variate.
|
class |
ScaledVariate
Given a RandomVariate, this will scale and (optionally) shift it.
|
class |
SequenceVariate
Generates sequence of numbers starting with 0 and increasing by 1
|
class |
TraceVariate
"Generates" numbers specified by the parameters.
|
class |
TriangleVariate
Generates Triangle random variates.
|
class |
TruncatedNormalVariate
Generates Normal variates truncated at 0.0.
|
class |
TruncatedVariate
Generates the maximum of a RandomVariate and a truncation point.
|
class |
TwoStateMarkovVariate
Generates values from a 2-D Markov Chain taking on values {0,1}.
|
class |
UniformVariate
Generates continuous uniform random variates.
|
class |
Weibull_64Variate
Generate from the Weibull distribution having pdf:
f(x) = αxα-1β-αe-(x/β)α, x > 0 |
class |
WeibullVariate
Generate from the Weibull distribution having pdf:
f(x) = αxα-1β-αe-(x/β)α, x > 0 |
Modifier and Type | Field and Description |
---|---|
private RandomVariate[] |
MixedVariate.distributions
The RandomVariates to mix.
|
private RandomVariate |
PearsonTypeVVariate.gammaVariate
The instance of the GammaVariate used to generate the Pearson type V.
|
private RandomVariate |
BetaVariate.gammaVariate1 |
private RandomVariate |
BetaVariate.gammaVariate2 |
protected RandomVariate |
RenewalProcessVariate.interarrivalTime
The supporting RandomVariate used to generate the interarrival times.
|
private RandomVariate |
GammaARVariate.mixtureVariate |
private RandomVariate |
AR1Variate.noiseGenerator |
protected RandomVariate |
PoissonVariate.normalVariate
To be used for large values of the mean
|
private RandomVariate |
TruncatedVariate.randomVariate |
private RandomVariate[] |
ConvolutionVariate.rv
The array of RandomVariates that are summed.
|
private RandomVariate |
ExponentialTransform.rv
An instance of the underlying RandomVariate.
|
private RandomVariate |
LogTransform.rv
The instance of the underlying RandomVariate.
|
private RandomVariate |
Log_64Transform.rv
The instance of the underlying RandomVariate.
|
private RandomVariate[] |
RandomPointGenerator.rv
A 2 element array that holds the instance of the x and y RandomVariate.
|
private RandomVariate |
ScaledVariate.rv
The instance of the underlying RandomVariate.
|
private RandomVariate[] |
BivariateNormalVector.standardNormalsGenerator |
private RandomVariate[] |
CompositionVariate.theRandomVariates |
Modifier and Type | Field and Description |
---|---|
protected static java.util.Map<java.lang.String,java.lang.Class<? extends RandomVariate>> |
RandomVariateFactory.cache
Holds a cache of the RandomVariate Classes that have already been found
indexed by their name.
|
Modifier and Type | Method and Description |
---|---|
protected RandomVariate[] |
MixedVariate.deepCopy(RandomVariate[] live) |
RandomVariate[] |
MixedVariate.getDistributions() |
static RandomVariate |
RandomVariateFactory.getInstance(RandomVariate rv)
Gets a new instance of the given RandomVariate.
|
static RandomVariate |
RandomVariateFactory.getInstance(java.lang.String toString)
Parses and instantiates a RandomVariate based on a purely String
representation.
|
static RandomVariate |
RandomVariateFactory.getInstance(java.lang.String className,
java.util.Map<java.lang.String,java.lang.Object> params) |
static RandomVariate |
RandomVariateFactory.getInstance(java.lang.String className,
java.lang.Object... parameters)
Creates a
RandomVariate instance with default seed(s) and
the default supporting RandomNumber . |
static RandomVariate |
RandomVariateFactory.getInstance(java.lang.String className,
RandomNumber rng,
java.lang.Object... parameters)
Creates a
RandomVariate instance supported by the
RandomNumber instance passed in. |
RandomVariate |
RenewalProcessVariate.getInterarrivalTime() |
RandomVariate |
GammaARVariate.getMixtureVariate() |
RandomVariate |
ExponentialTransform.getRandomVariate() |
RandomVariate |
LogTransform.getRandomVariate() |
RandomVariate |
Log_64Transform.getRandomVariate() |
RandomVariate[] |
RandomPointGenerator.getRandomVariate() |
RandomVariate |
ScaledVariate.getRandomVariate() |
RandomVariate |
TruncatedVariate.getRandomVariate() |
RandomVariate[] |
ConvolutionVariate.getRandomVariates()
Gets a clone of the array of RandomVariates.
|
RandomVariate[] |
BivariateNormalVector.getStandardNormalsGenerator() |
RandomVariate[] |
CompositionVariate.getTheRandomVariates() |
protected static RandomVariate |
RandomVariateFactory.getUnconfiguredInstance(java.lang.String className) |
Modifier and Type | Method and Description |
---|---|
static java.lang.Class<? extends RandomVariate> |
RandomVariateFactory.findFullyQualifiedNameFor(java.lang.String className)
Finds the RandomVariate Class corresponding to the given name.
|
static java.util.Map<java.lang.String,java.lang.Class<? extends RandomVariate>> |
RandomVariateFactory.getCache() |
Modifier and Type | Method and Description |
---|---|
protected RandomVariate[] |
MixedVariate.deepCopy(RandomVariate[] live) |
static RandomVariate |
RandomVariateFactory.getInstance(RandomVariate rv)
Gets a new instance of the given RandomVariate.
|
void |
MixedVariate.setDistributions(RandomVariate[] dist) |
void |
RenewalProcessVariate.setInterarrivalTime(RandomVariate rv) |
void |
ExponentialTransform.setRandomVariate(RandomVariate randVar) |
void |
LogTransform.setRandomVariate(RandomVariate randVar) |
void |
Log_64Transform.setRandomVariate(RandomVariate randVar) |
void |
ScaledVariate.setRandomVariate(RandomVariate rv) |
void |
TruncatedVariate.setRandomVariate(RandomVariate randomVariate) |
void |
RandomPointGenerator.setRandomVariate(RandomVariate[] rv)
Sets the RandomVariates for this RandomPointGenerator.
|
void |
ConvolutionVariate.setRandomVariates(RandomVariate[] rand)
Sets the array of RandomVariates.
|
void |
BivariateNormalVector.setStandardNormalsGenerator(RandomVariate[] standardNormalsGenerator)
It is assumed that the RandomVariates both generate standard normal
variates
|
Constructor and Description |
---|
RandomPointGenerator(RandomVariate[] rv)
Creates a new instance of RandomPointGenerator with the given RandomVariates.
|
Modifier and Type | Field and Description |
---|---|
private RandomVariate[] |
RandomMoverManager.coordinate |
Modifier and Type | Method and Description |
---|---|
RandomVariate[] |
RandomMoverManager.getCoordinate() |
Modifier and Type | Method and Description |
---|---|
void |
RandomMoverManager.setCoordinate(RandomVariate[] coordinate) |
Constructor and Description |
---|
RandomMoverManager(Mover mover,
RandomVariate[] coordinate,
boolean startOnRun)
Instantiate a RandomMoverManager with the given Mover,
Random coordinate generators and whether to start immediately.
|
Modifier and Type | Field and Description |
---|---|
private RandomVariate[] |
RandomLocationMoverManager.location
A 2-dimensional array that contains a RandomVariate for the x coordinate
and the y coordinate.
|
private RandomVariate |
RandomLocationMoverManager.speed
The RandomVariate for the speedGen of movement.
|
Modifier and Type | Method and Description |
---|---|
RandomVariate[] |
RandomLocationMoverManager.getLocationGenerator() |
RandomVariate |
RandomLocationMoverManager.getSpeedGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
RandomLocationMoverManager.setLocationGenerator(RandomVariate[] rv)
Sets the RandomVariates used to pick the next x and y coordinates.
|
void |
RandomLocationMoverManager.setSpeedGenerator(RandomVariate rv)
Sets the RandomVariate used to pick the speedGen for the next leg.
|
Constructor and Description |
---|
RandomLocationMoverManager(Mover mover,
RandomVariate[] location)
Creates a new instance of RandomLocationMoverManager that moves the Mover
at its maximum speedGen.
|
RandomLocationMoverManager(Mover mover,
RandomVariate[] location,
RandomVariate speed)
Creates a new instance of RandomLocationMoverManager.
|
RandomLocationMoverManager(Mover mover,
RandomVariate[] location,
RandomVariate speed)
Creates a new instance of RandomLocationMoverManager.
|
Modifier and Type | Field and Description |
---|---|
static RandomVariate |
TestOscillate.exp |
private RandomVariate |
TestTruncatingSimpleStatsTimeVarying.generator |
private RandomVariate |
TestLinearSimpleStatsTimeVarying.interarrivalTime |
private RandomVariate |
TestRenewalProcess.interarrivalTimeGenerator |
private RandomVariate |
TestLinearSimpleStatsTimeVarying.inventoryLevel |
private RandomVariate |
TestOscillate.rv |
private RandomVariate |
TestWaitDelayRandomVariate.timeToFoo |
Modifier and Type | Method and Description |
---|---|
RandomVariate |
TestTruncatingSimpleStatsTimeVarying.getGenerator() |
RandomVariate |
TestLinearSimpleStatsTimeVarying.getInterarrivalTime() |
RandomVariate |
TestRenewalProcess.getInterarrivalTimeGenerator() |
RandomVariate |
TestLinearSimpleStatsTimeVarying.getInventoryLevel() |
RandomVariate |
TestOscillate.getRv() |
RandomVariate |
TestWaitDelayRandomVariate.getTimeToFoo() |
Modifier and Type | Method and Description |
---|---|
void |
TestTruncatingSimpleStatsTimeVarying.setGenerator(RandomVariate generator) |
void |
TestLinearSimpleStatsTimeVarying.setInterarrivalTime(RandomVariate interarrivalTime) |
void |
TestRenewalProcess.setInterarrivalTimeGenerator(RandomVariate interarrivalTimeGenerator) |
void |
TestLinearSimpleStatsTimeVarying.setInventoryLevel(RandomVariate inventoryLevel) |
void |
TestOscillate.setRv(RandomVariate rv) |
void |
TestWaitDelayRandomVariate.setTimeToFoo(RandomVariate timeToFoo) |
Constructor and Description |
---|
TestLinearSimpleStatsTimeVarying(RandomVariate interarrivalTime,
RandomVariate inventoryLevel)
Creates a new instance of TestLinearSimpleStatsTimeVarying
|
TestOscillate(double deltaT,
RandomVariate rv)
Creates new TestOacillate
|
TestRenewalProcess(RandomVariate interarrivalTimeGenerator)
Creates new TestRenewalProcess
|
TestTruncatingSimpleStatsTimeVarying(RandomVariate generator,
int initialValue) |
TestWaitDelayRandomVariate(RandomVariate timeToFoo) |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.lang.Class<? extends RandomVariate>> |
ClassFinder.randomVariateClasses |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Class<? extends RandomVariate>> |
ClassFinder.getRandomVariateClasses() |
Modifier and Type | Method and Description |
---|---|
static RandomVariate |
RandomVariateBuilder.buildRandomVariate(org.w3c.dom.Element element)
Builds a RandomVariate based on the contents of the given Element.
|
static RandomVariate[] |
RandomVariateBuilder.buildRandomVariates(org.w3c.dom.Element element)
Builds RandomVariates based on the contents of the child Elements named
"RandomVariate".
|