Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //PC CASE
- enum Vormfactor {
- atx, matx, itx
- }
- //PC CASE KLEUR
- enum Kleur {
- black, gray, blue, white, red
- }
- //PC CASE MATERIAL
- enum Materiaal {
- steel, temperedglass, plastic, aluminum, metal
- }
- //USBPoorten
- /**interface USBPoort {
- type : USBVersion;
- aantal : number;
- }
- */
- //Moederbord geheugentype
- enum Moederbordgeheugentype {
- DDR3, DDR4, DDR5
- }
- //Moederboard overclock
- enum Moederboardoverclock {
- Yes, No
- }
- //Moederbord socket
- enum Moederboardsocket {
- Intel,
- AMD
- }
- //CPU socket
- enum CPUsocket {
- Intel,
- AMD
- }
- class pcCase {
- name: string;
- ondersteuntVormFactoren: Vormfactor [] = [Vormfactor.atx, Vormfactor.matx, Vormfactor.itx];
- color: Kleur;
- material: Materiaal;
- length: number;
- width: number;
- height: number;
- maxGpuLength: number;
- maxCpuCoolerHeight: number;
- expSlots: number;
- ssdDriveBays: number;
- hddDriveBays: number;
- //Welke vormvactorondersteuning? (Int waarde)
- ondersteunt(motherBoard: motherBoard) {
- return this.ondersteuntVormFactoren.indexOf (motherBoard.vormFactoren) >= 0
- }
- constructor (strName: string, color: Kleur, material: Materiaal,
- numLength: any, numWidth: number, numHeight: number, numGpuLength: number, numCpuCoolerHeight: number,
- numExpSlots: number, numSsdDriveBays: number, numHddDriveBays: number)
- {
- this.name = strName;
- this.color = color;
- this.material = material;
- this.length = numLength;
- this.height = numHeight;
- this.width = numWidth;
- this.maxGpuLength = numGpuLength;
- this.maxCpuCoolerHeight = numCpuCoolerHeight;
- this.expSlots = numExpSlots;
- this.ssdDriveBays = numSsdDriveBays;
- this.hddDriveBays = numHddDriveBays;
- }
- };
- //ATX PC Cases
- let coolermastermb520 = new pcCase ("Coolermaster MB520", Kleur.black, Materiaal.plastic, 496, 217, 468, 410, 165, 7, 2, 4);
- let nzxth510 = new pcCase("NZXT H510", Kleur.white, Materiaal.steel, 428, 210, 468, 381, 160, 7, 3, 3);
- let corsairicue220t = new pcCase ("Corsair iCUE 220t", Kleur.white, Materiaal.steel, 395, 210, 450, 300, 160, 7, 2, 2);
- let fractaldesignmeshifyc = new pcCase("Fractal Design Meshify C", Kleur.black, Materiaal.steel, 395, 212, 440, 315, 172, 7, 3, 2);
- let phantekseclipsep300 = new pcCase ("Phantekseclipse P300", Kleur.black, Materiaal.steel , 400, 200, 450, 330, 160, 7, 2, 2);
- let sharkoontg4 = new pcCase ("Sharkoon TG4", Kleur.black, Materiaal.steel, 455, 200, 430, 375, 160, 6, 4, 2);
- //m-ATX PC Cases
- let coolermasterq300l = new pcCase ("Coolermaster Q300L", Kleur.black, Materiaal.steel, 387, 230, 381, 360, 159, 4, 2, 1);
- let nzxth400 = new pcCase ("NZXT H400", Kleur.black, Materiaal.steel, 421, 210, 417, 360, 159, 4, 3, 1);
- let corsaircrystal280x = new pcCase ("Corsair Crystal 280X", Kleur.black, Materiaal.steel, 398, 276, 351, 300, 180, 4, 3, 2);
- let fractaldesignfocusgmini = new pcCase ("Fractal Design Focus G mini", Kleur.black, Materiaal.steel, 464, 205, 383, 380, 165, 4, 1, 2);
- //let phanteksenthooevolv = new pcCase ("Phanteks Enthoo Evolv", ["black", "gray", "white"], ["steel", "tempered glass", "aluminum"], 400, 230, 453, 319, 192, 4, 2,2);
- //let sharkoons1000window = new pcCase ("Sharkoon s1000 Window", "black", ["steel", "tempered glass", "aluminum"], 453, 195, 402, 400, 150, 4, 2, 2);
- //ITX PC Cases
- //let coolermastermch100 = new pcCase ("Coolermaster MCH100", ["black", "gray"], ["steel", "plastic"], 312, 216, 301, 210, 83, 2, 3, 1);
- //let nzxth210 = new pcCase ("NZXT H210", ["black", "gray"], ["steel", "tempered glass"], 372, 210, 349, 325, 165, 2, 4, 1);
- //let fractaldesignnode304 = new pcCase ("Fractal Design Node 304", ["black", "white"], ["steel", "tempered glass"], 372, 250, 210, 310, 165, 2, 3, 1);
- let phanteksenthooevolvshiftair = new pcCase ("Phanteks Enthoo Evolv Shiftair", Kleur.gray, Materiaal.metal, 370, 225, 180, 315, 150, 2, 1 ,1);
- let sharkoonsharkzonec10 = new pcCase ("Sharkoon SHarkzone C10", Kleur.gray, Materiaal.metal, 370, 225, 180, 315, 150, 2, 1, 1);
- //MOTHERBOARD
- class motherBoard {
- vormFactoren: Vormfactor;
- name: string;
- overclock: Moederboardoverclock;
- ramSlots: number;
- memory: Moederbordgeheugentype;
- ddrSpeed: any;
- socket: any;
- pciSlots: number;
- m2Slots: number;
- sataConnectors: number;
- usb31: number;
- usb20: number;
- rgbHeader: number;
- constructor (strName: string, formaat: Vormfactor, Moederboardoverclock: Moederboardoverclock, numRamSlots: number,
- anyMemory: any, anyDdrMemory: any, Moederboardsocket: Moederboardsocket, numPciSlots: number, numM2Slots: number,
- numSataConnectors: number, numUsb31: number, numUsb20: number, numRgbHeader:number)
- {
- this.name = strName;
- this.vormFactoren = formaat;
- this.overclock = Moederboardoverclock;
- this.ramSlots = numRamSlots;
- this.memory = anyMemory;
- this.ddrSpeed = anyDdrMemory;
- this.socket = Moederboardsocket;
- this.pciSlots = numPciSlots;
- this.m2Slots = numM2Slots;
- this.sataConnectors = numSataConnectors;
- this.usb31 = numUsb31;
- this.usb20 = numUsb20;
- this.rgbHeader = numRgbHeader;
- }
- };
- //ATX Motherboards Intel
- let gigabytez390gamingx = new motherBoard ("Gigabyte Z390 GamingX", Vormfactor.atx, Moederboardoverclock.Yes, 4, Moederbordgeheugentype.DDR4, "4266MHz", Moederboardsocket.Intel, 2, 2, 6, 5, 2,1);
- let msiz390apro = new motherBoard ("MSI Z390-A Pro", Vormfactor.atx, Moederboardoverclock.Yes, 4, Moederbordgeheugentype.DDR4, "4400MHz", Moederboardsocket.Intel, 2, 2, 6, 4, 2, 1);
- let asusrogstrixb360fgaming = new motherBoard ("Asus ROG Strix B360-F Gaming", Vormfactor.atx, Moederboardoverclock.No, 4, Moederbordgeheugentype.DDR4, "2666MHz", Moederboardsocket.Intel, 2, 2, 6, 3, 4, 1);
- let msib360apro = new motherBoard ("MSI 360-A Pro", Vormfactor.atx, Moederboardoverclock.No, 4, Moederbordgeheugentype.DDR4, "2666MHz", Moederboardsocket.Intel, 2, 1, 6, 2, 2, 0);
- //m-ATX Motherboards Intel
- let gigabytez390mgaming = new motherBoard ("Gigabyte Z390M Gaming", Vormfactor.matx, Moederboardoverclock.No, 4, Moederbordgeheugentype.DDR4, "4266MHz", Moederboardsocket.Intel, 2, 2, 6, 5, 2, 1);
- let asusrogstrixb360ggaming = new motherBoard ("Asus ROG Strix B360-G Gaming", Vormfactor.matx, Moederboardoverclock.No, 4, Moederbordgeheugentype.DDR4, "2666MHz", Moederboardsocket.Intel, 1, 2, 6, 6, 0, 1);
- //ITX Motherboards Intel
- let gigabyteaorusz390pro = new motherBoard ("Gigabyte Aorus I Z390 Pro", Vormfactor.itx, Moederboardoverclock.Yes, 2, Moederbordgeheugentype.DDR4, "4400MHz", Moederboardsocket.Intel, 1, 2, 4, 5, 0, 1);
- let asusrogstrixb360lggaming = new motherBoard ("Asus ROG Strix B360-l Gaming", Vormfactor.itx, Moederboardoverclock.No, 2, Moederbordgeheugentype.DDR4, "2666MHz", Moederboardsocket.Intel, 1, 2, 4, 4, 2, 0);
- //ATX Motherboards AMD
- let gigabyteaorusx570elite = new motherBoard ("Gigabyte Aorus X570 ELITE", Vormfactor.atx, Moederboardoverclock.Yes, 4, Moederbordgeheugentype.DDR4, "4000MHz", Moederboardsocket.AMD, 2, 2, 6, 6, 2, 2);
- let asusrogstrixb450gaming = new motherBoard ("Asus ROG Strix B450-F Gaming", Vormfactor.atx, Moederboardoverclock.Yes, 4, Moederbordgeheugentype.DDR4, "3644MHz", Moederboardsocket.AMD, 2, 2, 6, 6, 2, 2);
- let msib450tomahawkmax = new motherBoard ("MSI B450 Tomahawk Max", Vormfactor.atx, Moederboardoverclock.Yes, 4, Moederbordgeheugentype.DDR4, "2666MHz", Moederboardsocket.AMD, 1, 1, 6, 6, 2, 2);
- //m-ATX Motherboards AMD
- let gigabyteaorusb450m = new motherBoard ("Gigabyte Aorus B450-M", Vormfactor.matx, Moederboardoverclock.Yes, 4, Moederbordgeheugentype.DDR4, "4266MHz", Moederboardsocket.AMD, 2, 2, 6, 6, 2, 1);
- let asusrogstrixb360gaming = new motherBoard ("Asus ROG Strix B360-G Gaming", Vormfactor.matx, Moederboardoverclock.Yes, 4, Moederbordgeheugentype.DDR4, "4400MHz", Moederboardsocket.Intel, 1, 1, 6, 6, 0, 1);
- // ITX Motherboards AMD
- let gigabyteaorusx570 = new motherBoard ("Gigabyte Aorus X570", Vormfactor.itx, Moederboardoverclock.Yes, 2, Moederbordgeheugentype.DDR4, "4400MHz", Moederboardsocket.AMD, 1, 2, 4, 5, 1, 1);
- let asusrogstrixb450lgaming = new motherBoard ("Asus ROG Strix B450-l Gaming", Vormfactor.itx, Moederboardoverclock.Yes, 4, Moederbordgeheugentype.DDR4, "4400MHz", Moederboardsocket.AMD, 1, 2, 4, 6, 0, 1);
- //CPU
- class cpu {
- name: string;
- socket: CPUsocket;
- overclock: boolean;
- constructor (strName: string, boolOc: boolean, socket: CPUsocket)
- {
- this.name = strName;
- this.overclock = boolOc;
- this.socket = socket;
- }
- };
- //Intel Z390
- let i39350k = new cpu ("i3 9350k", true, CPUsocket.Intel);
- let i59600k = new cpu ("i5 9600k", true, CPUsocket.Intel);
- let i79700k = new cpu ("i7 9700k", true, CPUsocket.Intel);
- let i99900k = new cpu ("i9 9900k", true, CPUsocket.Intel);
- //Intel B630
- let i39100f = new cpu("i3 9100f", true, CPUsocket.Intel);
- let i59400f = new cpu("i5 9400f", true, CPUsocket.Intel);
- let i79700f = new cpu("i7 9700f", true, CPUsocket.Intel);
- //AMD470/570
- let ryzen3600x = new cpu ("Ryzen 3600x", true, CPUsocket.AMD);
- let ryzen2700x = new cpu ("Ryzen 2700x", true, CPUsocket.AMD);
- let ryzen3800x = new cpu ("Ryzen 3800x", true, CPUsocket.AMD);
- let ryzen3950x = new cpu ("Ryzen 3950x", true, CPUsocket.AMD);
- //AMD non X(B450)
- let ryzen2200g = new cpu ("Ryzen 2200g", true, CPUsocket.AMD);
- let ryzen2600 = new cpu ("Ryzen 2600", true, CPUsocket.AMD);
- let ryzen3600 = new cpu ("Ryzen 3600", true, CPUsocket.AMD);
- let ryzen2700 = new cpu ("Ryzen 2700", true, CPUsocket.AMD);
- //Memory
- class memory {
- name: string;
- memory: any;
- speed: any;
- memorySize: any;
- totalMemory: number;
- constructor (strName: string, anyMemory: any, anySpeed: any, anyMemorySize: any, numTotalMemory: any)
- {
- this.name = strName;
- this.memory = anyMemory;
- this.speed = anySpeed;
- this.memorySize = anyMemorySize;
- this.totalMemory = numTotalMemory;
- }
- };
- //8GB Memory
- let corsairvengeance2400 = new memory ("Corsair Vengeance2400MHz", "DDR4", "2400MHz", "2x4", 8);
- //16GB Memory
- let gskillaegis2666 = new memory("G.Skill Aegis 2666", "DDR4", "2666MHz", "2x8", 16);
- let corsairvengancergb3000 = new memory("Corsair Vengeance RGB3000", "DDR4", "3000MHz", "2x8", 16);
- let gskilltridentz3200 = new memory("G.Skill Trident Z RGB 3200", "DDR4", "3200MHz", "2x8", 16);
- //32GB Memory
- let gskillripjaws2666 = new memory ("G.Skill Ripjaws 2666", "DDR4", "2666MHz", "4x8", 32);
- let gskilltridentzrbg2666 = new memory ("G.Skill Trident Z 2666", "DDR4", "2666MHz", "4x8", 32);
- let gskilltridentzrgb3200 = new memory ("G.Skill Trident Z 3200", "DDR4", "3200MHz", "4x8", 32);
- class gpu {
- brand: string;
- type: string;
- name: string;
- length: number;
- depth: number;
- memorySize: number;
- constructor(strBrand: string, strType: string, strName: string, numLength: number, numDepth: number,
- numMemorySize: number) {
- this.brand = strBrand;
- this.type = strType;
- this.name = strName;
- this.length = numLength;
- this.depth = numDepth;
- this.memorySize = numMemorySize;
- }
- };
- //NVidia GPU
- let nvidiagtx1650 = new gpu ("Inno3D", "GTX", "GTX 1650 Super (Inno3D Twin X2)", 220, 113, 4);
- let nvidiagtx1660 = new gpu ("PNY", "GTX", "GTX 1660 Super (PNY Dual)", 220, 113, 6);
- let nvidiagtx1660ti = new gpu ("PNY", "GTX", "GTX 1660ti Super (PNY Dual)", 196, 113, 6);
- let nvidiartx2060 = new gpu ("KFA2", "RTX", "RTX 2060 Super (KFA2)", 245, 134, 6);
- let nvidiartx2070 = new gpu ("KFA2", "RTX", "RTX 2070 Super(KFA2)", 295, 143, 8);
- let nvidiartx2080 = new gpu ("KFA2", "RTX", "RTX 2080 Super (KFA2)", 295, 143, 8);
- let nvidiartx2080ti = new gpu ("KFA2", "RTX", "RTX 2080ti Super (KFA2)", 268, 112, 11);
- //AMD GPU
- let rx570 = new gpu ("XFX", "RX", "RX570 (XFX)", 243, 124, 8);
- let rx580 = new gpu ("Asus Dual", "RX", "RX580 (Asus Dual)", 242, 1298, 8);
- let rx590 = new gpu ("Sapphire Pulse", "RX", "RX590 (Sapphire Pulse)", 230, 125, 8);
- let rx5500xt = new gpu ("Gigabyte", "RX", "RX5500XT (Gigabyte)", 281, 115, 8);
- let rx5700 = new gpu ("AsRock", "RX", "RX5700 (ASRock)", 281, 126, 8);
- let rx5700xt = new gpu ("ASRock", "RX", "RX5700XT (ASRock)", 324, 145, 8);
- class storage {
- name: string;
- type: string;
- size: number;
- capacity: number;
- constructor(strName: string, strType: string, numSize: number, numCapacity: number) {
- this.name = strName;
- this.type = strType;
- this.size = numSize;
- this.capacity = numCapacity;
- }
- };
- //SSD
- let ssd120pny = new storage ("PNY120GB", "SSD", 2.5, 120);
- let ssd250kingston = new storage ("Kingston250GB", "SSD", 2.5, 250);
- let ssd500kingston = new storage ("Kingston500GB", "SSD", 2.5, 500);
- let ssd1000gigabyte = new storage ("Kingston1000GB", "SSD", 2.5, 1000);
- //M.2
- let m2120wdgreen = new storage ("WD Green 120GB", "m.2", 0, 120);
- let m2250wdgreen = new storage ("WD Green 250GB", "m.2", 0, 250);
- let m2500wdgreen = new storage ("WD Green 500GB", "m.2", 0, 500);
- let m21000wdgreen = new storage ("WD Blue 1000GB", "m.2", 0, 1000);
- //HDD
- let hdd500wdblue = new storage ("WD Blue 500GB", "HDD", 3.5, 500);
- let hdd1000wdblue = new storage ("WD Blue 1000GB", "HDD", 3.5, 1000);
- let hdd2000wdblue = new storage ("WD Blue 2000GB", "HDD", 3.5, 2000);
- let hdd4000wdblue = new storage ("WD Blue 4000GB", "HDD", 3.5, 4000);
- class psu {
- name: string;
- type: string;
- watt: number;
- constructor (strName: string, strType: string, numWatt: number) {
- this.name = strName;
- this.type = strType;
- this.watt = numWatt;
- }
- };
- //Corsair PSU
- let corsairvs450 = new psu ("Corsair VS450", "Corsair", 450);
- let corsairvs550 = new psu ("Corsair VS550", "Corsair", 550);
- let corsaircx650 = new psu ("Corsair CX650", "Corsair", 650);
- let corsairrm750 = new psu ("Corsair RM750", "Corsair", 750);
- let corsairax1000 = new psu ("Corsair AX1000", "Corsair", 1000);
- let corsairax1200i = new psu ("Corsair AX1200i", "Corsair", 1200);
- //Seasonic PSU
- let seasonics12 = new psu ("Seasonic S12II-Bronze 520W", "Seasonic", 520);
- let seasonicm12 = new psu ("Seasonic M12II Evo 520W", "Seasonic", 520);
- let seasonicfocusplus = new psu ("Seasonic Focus Plus 650 Gold", "Seasonic", 650);
- let seasonicprimeplatinum = new psu ("Seasonic Prime Platinum 1300W", "Seasonic", 1300);
- //LOG NEEDS FUNCTION
- //ATX PC Cases
- console.log(coolermastermb520);
- console.log(nzxth510);
- console.log(corsairicue220t);
- console.log(fractaldesignmeshifyc);
- console.log(phantekseclipsep300);
- console.log(sharkoontg4);
- //m-ATX PC Cases
- console.log(coolermasterq300l);
- console.log(nzxth400);
- console.log(corsaircrystal280x);
- console.log(fractaldesignfocusgmini);
- //console.log(phanteksenthooevolv);
- //console.log(sharkoons1000window);
- //ITX PC Cases
- //console.log(coolermastermch100);
- //console.log(nzxth210);
- //console.log(fractaldesignnode304);
- console.log(phanteksenthooevolvshiftair);
- console.log(sharkoonsharkzonec10);
- //ATX Motherboards Intel
- console.log(gigabytez390gamingx);
- console.log(msiz390apro);
- console.log(asusrogstrixb360fgaming);
- console.log(msib360apro);
- //m-ATX Motherboards Intel
- console.log(gigabytez390mgaming);
- console.log(asusrogstrixb360ggaming);
- //ITX Motherboards Intel
- console.log(gigabyteaorusz390pro);
- console.log(asusrogstrixb360lggaming);
- //ATX Motherboards AMD
- console.log(gigabyteaorusx570elite);
- console.log(asusrogstrixb450gaming);
- console.log(msib450tomahawkmax);
- //m-ATX Motherboards AMD
- console.log(gigabyteaorusb450m);
- console.log(asusrogstrixb360gaming);
- //ITX Motherboards AMD
- console.log(gigabyteaorusx570);
- console.log(asusrogstrixb360lggaming);
- //Intel Z390
- console.log(i39350k);
- console.log(i59600k);
- console.log(i79700k);
- console.log(i99900k);
- //Intel B630
- console.log(i39100f);
- console.log(i59400f);
- console.log(i79700f);
- //AMD470/570
- console.log(ryzen2700x);
- console.log(ryzen3600x);
- console.log(ryzen3800x);
- console.log(ryzen3950x);
- //AMD non X(B450)
- console.log(ryzen2200g);
- console.log(ryzen2600);
- console.log(ryzen2700);
- console.log(ryzen3600);
- //8GB Memory
- console.log(corsairvengeance2400);
- //16GB Memory
- console.log(gskillaegis2666);
- console.log(corsairvengancergb3000);
- console.log(gskilltridentz3200);
- //32GB Memory
- console.log(gskillripjaws2666);
- console.log(gskilltridentzrbg2666);
- console.log(gskilltridentzrgb3200);
- //Nvidia GPU
- console.log(nvidiagtx1650);
- console.log(nvidiagtx1660);
- console.log(nvidiagtx1660ti);
- console.log(nvidiartx2060);
- console.log(nvidiartx2070);
- console.log(nvidiartx2080);
- console.log(nvidiartx2080ti);
- //AMD GPU
- console.log(rx570);
- console.log(rx580);
- console.log(rx590);
- console.log(rx5500xt);
- console.log(rx5700);
- console.log(rx5700xt);
- //STORAGE SSD
- console.log(ssd120pny);
- console.log(ssd250kingston);
- console.log(ssd500kingston);
- console.log(ssd1000gigabyte);
- //STORAGE M.2
- console.log(m2120wdgreen);
- console.log(m2250wdgreen);
- console.log(m2500wdgreen);
- console.log(m21000wdgreen);
- //STORAGE HDD
- console.log(hdd500wdblue);
- console.log(hdd1000wdblue);
- console.log(hdd2000wdblue);
- console.log(hdd4000wdblue);
- //Corsair PSU
- console.log(corsairvs450);
- console.log(corsairvs550);
- console.log(corsaircx650);
- console.log(corsairrm750);
- console.log(corsairax1000);
- console.log(corsairax1200i);
- //Seasonic PSU
- console.log(seasonics12);
- console.log(seasonicm12);
- console.log(seasonicfocusplus);
- console.log(seasonicprimeplatinum);
- //Function if/else statement to make status true/false, eliminate false statements.
- function atx(pcCase:any, motherBoard:any){
- if(pcCase.atx === motherBoard.atx){
- console.log("true");
- }
- else {
- console.log("false");
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement