network
Class Source
java.lang.Object
network.Node
network.Source
public class Source
- extends Node
A Source node injects customers into a queueing network.
The inter-arrival time (a DistributionSampler)
must be specified. Arrivals may
optionally be batched, with the batch size specified by
a second DistributionSampler.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
delay
protected DistributionSampler delay
batchsize
protected DistributionSampler batchsize
Source
public Source(java.lang.String name,
DistributionSampler d)
- Parameters:
name - The name of the source noded - The DistributionSampler used to generate the
inter-arrival times
Source
public Source(java.lang.String name,
DistributionSampler d,
DistributionSampler b)
- Parameters:
name - The name of the source noded - The DistributionSampler used to generate the
inter-arrival timesb - The DistributionSampler used to generate the
batch sizes
buildCustomer
protected Customer buildCustomer()
- Builds a new customer. This can be overridden to support
specialised
Customer subclasses.
- Returns:
- a customer