You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Cryptid/cryptide_project/src/model/IndiceTester/NbEdgesIndiceTester.ts

19 lines
525 B

import AgeIndice from "../Indices/AgeIndice";
import NbEdgesIndice from "../Indices/NbEdgesIndice";
import Person from "../Person";
import IndiceTester from "./IndiceTester";
class NbEdgesIndiceTester implements IndiceTester{
private nbEdgesIndice: NbEdgesIndice
constructor(nbEdgesIndice: NbEdgesIndice){
this.nbEdgesIndice = nbEdgesIndice;
}
Works(person: Person): boolean {
return person.getFriends().length == this.nbEdgesIndice.getNbEdges()
}
}
export default NbEdgesIndiceTester