Virtlab:Řídící server/Values.php.inc

Z VirtlabWiki

< Virtlab:Řídící serverVerze z 21:52, 21. 2. 2007; zobrazit aktuální verzi
← Starší verze | Novější verze →
Přejít na: navigace, hledání

Tato třída v sobě obsahuje různé konstanty, které ovlivnůjí chování dalších objektů.

Popis konstant

Zdrojový kód

<?php
class virtlabValues {
    //Evaluate
    const DeviceFeature = 125;//
    const InterfaceTechnologySerial   = 100;//
    const InterfaceTechnologyEthernet = 20;//
    const InterfaceFeature = 30;//
    const EthertypeMultiplerLegacy  = 1;//
    const EthertypeMultiplerFast    = 2;//
    const EthertypeMultiplerGigabit = 5;//
    const bpsDefault = 128000;
    const bpsLower  = 0.8;
    const bpsBigger = 1.2;

    //error codes
    const badType = -1;
    const noPlatform  = -2;
    const badPlatform = -3;
    const badOSNotLower = -4;
    const badOSNotBigger = -5;
    const badOSNotEq = -6;
    const badOSEq = -7;
    const badOSBigger = -8;
    const badOSLower = -9;
    const badOS = -10;
    const noDeviceFeature = -11;
    const lowBps = -12;
    const VertexDeviceMismatch = -13;
    const notEnoughInterfaces = -14;

    //error avoidance
    const defaultMaxbps = 64000;
    const defaultEthertype = "fast";
}//class
?>
Osobní nástroje