public TrafficDefinitionLayer createNewLayer(TrafficDefinitionLayerType type) {
TrafficDefinitionLayer newLayer = null;
switch (type) {
case UserDefined:
newLayer = new UserDefinedTrafficDefinitionLayer();
break;
case ActivityBased:
newLayer = new ActivityBasedTrafficDefinitionLayer();
break;
case Random: