public Switch newSwitch ( int id , int capacity ) { Switch s = swBuilder . newSwitch ( id , capacity ) ; switches . add ( s ) ; return s ; }
Create a new switch with a specific identifier and a given maximal capacity