commutesim

Classes

Employee
Employer
VacancyPool
WorkShift
WorkShift

Functions

createEmployers
model
randomNode Return a random subcell of the provided cell


Employee

Derived from

Individual

Methods

Employee
live Demand to return to home location

Employee (Constructor)

Employee(parent)

Employee.live

live()

Demand to return to home location

Up


Employer

Derived from

Process, Cell

Methods

Employer

Employer (Constructor)

Employer(parent, i)

Up


VacancyPool

Derived from

None

Methods

VacancyPool
createEmployees Create and returns an array of worker objects

VacancyPool (Constructor)

VacancyPool(parent, numPositions, skillcode, schedule)

VacancyPool.createEmployees

createEmployees()

Create and returns an array of worker objects

Up


WorkShift

Derived from

None

Methods

WorkShift

WorkShift (Constructor)

WorkShift(start_time, end_time, days, cycle)

Up


WorkShift

Derived from

None

Methods

WorkShift

WorkShift (Constructor)

WorkShift(start_time, end_time, days, cycle)

Up


createEmployers

createEmployers(cell, numEmployers=1)
Up


model

model(SEED=101010)
Up


randomNode

randomNode(cell)

Return a random subcell of the provided cell

Up