officekit
Version:
A toolkit to represent and visualize office spaces. It also provides functionality to simulate usage of offices, and calculate a score given a fitness function. It also have functionatlity for automatic allocation of offices using a genetic algorithm.
13 lines (12 loc) • 377 B
TypeScript
export declare class SeatingStats {
items: number[];
teams: Map<string, number[]>;
seats: Map<number, number>;
constructor();
add(fitness: number): void;
addTeam(teamId: string, fitness: number): void;
addSeat(seatId: number, fitness: number): void;
getSeat(seatId: number): number;
getAverage(teamId?: string): number;
debug(): void;
}