public NetworkInterface(Settings s){
  this.interfacetype=s.getNameSpace();
  this.connections=new ArrayList<Connection>();
  this.transmitRange=s.getDouble(TRANSMIT_RANGE_S);
  this.transmitSpeed=s.getInt(TRANSMIT_SPEED_S);
  ensurePositiveValue(transmitRange,TRANSMIT_RANGE_S);
  ensurePositiveValue(transmitSpeed,TRANSMIT_SPEED_S);
}

public NetworkInterface ( Settings s ) { this . interfacetype = s . getNameSpace ( ) ; this . connections = new ArrayList < Connection > ( ) ; this . transmitRange = s . getDouble ( TRANSMIT_RANGE_S ) ; this . transmitSpeed = s . getInt ( TRANSMIT_SPEED_S ) ; ensurePositiveValue ( transmitRange , TRANSMIT_RANGE_S ) ; ensurePositiveValue ( transmitSpeed , TRANSMIT_SPEED_S ) ; }
for creating an empty class of a specific type
