network
Class Source

java.lang.Object
  extended by network.Node
      extended by 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.


Field Summary
protected  DistributionSampler batchsize
           
protected  DistributionSampler delay
           
 
Constructor Summary
Source(java.lang.String name, DistributionSampler d)
           
Source(java.lang.String name, DistributionSampler d, DistributionSampler b)
           
 
Method Summary
protected  Customer buildCustomer()
          Builds a new customer.
 
Methods inherited from class network.Node
accept, displayResults, enter, forward, getId, getName, logResults, resetMeasures, setLink, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

delay

protected DistributionSampler delay

batchsize

protected DistributionSampler batchsize
Constructor Detail

Source

public Source(java.lang.String name,
              DistributionSampler d)
Parameters:
name - The name of the source node
d - 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 node
d - The DistributionSampler used to generate the inter-arrival times
b - The DistributionSampler used to generate the batch sizes
Method Detail

buildCustomer

protected Customer buildCustomer()
Builds a new customer. This can be overridden to support specialised Customer subclasses.

Returns:
a customer