Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | 2x 2x 1x 1x | import { Cashflow } from ".";
/**
* Business
*/
export class Business {
name: string;
cashflow: Cashflow;
constructor(name: string, options?: { cashflow?: Cashflow }) {
this.name = name;
this.cashflow = options?.cashflow || new Cashflow();
}
/**
* Calculate the result of the I - Image reign and express it in a numerical form
*
* @return {number} The image result of the business
*/
currentImageResult(): number {
return 12;
}
/**
* Calculate the result of the H - Human reign and express it in a numerical form
*
* @return {number} The human result of the business
*/
currentHumanResult(): number {
return 12;
}
/**
* Calculate the result of the R - Resource reign and express it in a numerical form
*
* @return {number} The resource result of the business
*/
currentResourcesResult(): number {
const result = this.cashflow.currentBalance();
return result;
}
/**
* Calculate the result of the O - Operations reign and express it in a numerical form
*
* @return {number} The operations result of the business
*/
currentOperationsResult(): number {
return 12;
}
/**
* Calculate the result of the X - Integration reign and express it in a numerical form
*
* @return {number} The resource result of the business
*/
currentResult(): number {
return 12;
}
}
|