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.
17 lines (16 loc) • 584 B
TypeScript
import type { Person } from '$lib/people/Person';
import type { Team } from '$lib/people/Team';
import type { Reservation } from './Reservation';
export declare class Reservations {
map: Map<number, Reservation>;
people: Map<string, Reservation[]>;
teams: Map<string, Reservation[]>;
flex: Reservation[];
constructor();
add(reservation: Reservation): void;
getAllFlex(): Reservation[];
getByPerson(person: Person): Reservation[];
getByTeam(team: Team): Reservation[];
hasSeatId(id: number): boolean;
getBySeatId(id: number): Reservation;
}