package ch.rakudave.jnetmap.model.factories;
import org.apache.commons.collections15.Factory;
import ch.rakudave.jnetmap.model.device.Device;
import ch.rakudave.jnetmap.model.device.Host;
import ch.rakudave.jnetmap.model.device.Device.Type;
/**
* @author rakudave
*/
public class DeviceFactory implements Factory<Device> {
private static Type type = Type.Workstation;
@Override
public Device create() {
return new Host(type);
}
public static void setType(Type t) {
if (t != null) type = t;
}
}