m865.simulation
Class PassengerFactory
java.lang.Object
m865.simulation.PassengerFactory
public class PassengerFactory
- extends java.lang.Object
The PassengerFactory class will create a user specified number of
passengers for the elevator system. Each passenger will have a
Poisson arrival time, a schedule of two task to complete, and a
random balk time.
Constructor Summary |
PassengerFactory(int num,
double lambda,
long seed,
double mt,
double st,
double mb,
double sb)
Constructor for objects of class PassengerFactory |
Method Summary |
void |
schedulePassengers(DepartmentStore dept)
Generates each passenger and generates a personal schedule for each,
consisting of an arrival time, two tasks with times and a balk time
for that particular customer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
n
protected int n
generator
protected java.util.Random generator
lambda
protected double lambda
meanTask
protected double meanTask
stdTask
protected double stdTask
meanBalk
protected double meanBalk
stdBalk
protected double stdBalk
PassengerFactory
public PassengerFactory(int num,
double lambda,
long seed,
double mt,
double st,
double mb,
double sb)
- Constructor for objects of class PassengerFactory
- Parameters:
num
- The number of people to createlambda
- The arrival rate for the Poisson Processseed
- The seed for the RNG.mt
- The mean amount of time spent on a floorst
- The standard deviation for the time spent on a floormb
- The mean amount of balking timesb
- The standard deviation for the balking time
schedulePassengers
public void schedulePassengers(DepartmentStore dept)
- Generates each passenger and generates a personal schedule for each,
consisting of an arrival time, two tasks with times and a balk time
for that particular customer.