-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
52 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { IConstant } from './constant' | ||
import { ISpace } from './space' | ||
|
||
export interface IConfig { | ||
constants: IConstant // The constants used in the calculations | ||
spaces: ISpace[] // The array of spaces to be calculated | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export interface ISpaceCalculation { | ||
calculateEmployeesPerWorkplaceTypeUnadjusted: () => number // Function to calculate the unadjusted number of employees per workplace type | ||
calculateAreaExclCompensation: () => number // Function to calculate the area excluding compensation | ||
calculateAdjustedAreaInclCompensation: (totalWorkplceArea: number, totalCompensationArea: number, totalUnadjustedArea: number) => number // Function to calculate the adjusted area including compensation | ||
calculateNotAdjustedAddonArea: (totalWorkplaceArea: number, totalCompensationArea: number) => number // Function to calculate the not adjusted add-on area | ||
calculateAdjustedAddonArea: (totalWorkplaceArea: number, totalCompensationArea: number, totalUnadjustedArea: number) => number // Function to calculate the adjusted add-on area | ||
calculateNotAdjustedAddonPart: (totalWorkplaceArea: number, totalCompensationArea: number) => number // Function to calculate the not adjusted add-on part | ||
calculateEmployeesPerWorkplaceTypeAdjusted: (totalEmployeesPerWorkplaceTypeUnadjusted: number, allEmployeesPerWorkplaceTypeUnadjusted: number[]) => number // Function to calculate the adjusted number of employees per workplace type | ||
calculateAdjustedAreaInclCompensationWithAdjustmentAndCompensation: () => number // Function to calculate the adjusted area including compensation with adjustment and compensation | ||
dimensionedAttendance: () => number // Function to calculate the dimensioned attendance | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export interface ISpaceConstant { | ||
seatPersonRoom?: string // Optional, defines the type of space: seat, person or room | ||
areaPerRole: number // The area required per role | ||
personsPerType: number // The number of persons per type of space | ||
minimumPersons?: number // The minimum number of persons for this space | ||
minimumSquareMeters?: number // The minimum square meters required for this space | ||
shouldCalculateCompensation: boolean // Whether to calculate compensation for this space | ||
countsTowardsWorkspaceArea?: boolean // Whether this space counts towards the total workspace area | ||
seatAreaPerSpot?: number // The seat area per spot | ||
requiresAdditionalStorage?: boolean // Whether this space requires additional storage | ||
adhereToGovernmentMinimum: boolean // Whether to adhere to the government minimum for this space | ||
surchargeInternalCorridorShare?: number // The surcharge for the internal corridor share | ||
areaPerPersonExcludingCorridor?: number // The area per person excluding the corridor | ||
unitsPerPerson?: number // The units per person for this space | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export interface ISpaceResult { | ||
areaExclCompensation?: number // The area excluding compensation | ||
notAdjustedAddonArea?: number // The not adjusted add-on area | ||
notAdjustedAddonPart?: number // The not adjusted add-on part | ||
adjustedAddonArea?: number // The adjusted add-on area | ||
adjustedAreaInclCompensation?: number // The adjusted area including compensation | ||
adjustedAreaInclCompensationWithAdjustmentAndCompensation?: number // The adjusted area including compensation with adjustment and compensation | ||
employeesPerWorkplaceTypeUnadjusted?: number // The unadjusted number of employees per workplace type | ||
employeesPerWorkplaceTypeAdjusted?: number // The adjusted number of employees per workplace type | ||
netArea?: number // The net area of the space | ||
utilityFloorSpace?: number // The utility floor space of the space | ||
} |