package art.servers.lighting.lightstudsserver.controller;
|
|
import art.library.model.devices.Device;
|
import art.library.model.devices.lighting.lightstuds.LightStuds;
|
import art.servers.Shared;
|
import art.servers.controller.ControllerDevice;
|
|
|
|
public class FactoryController extends art.servers.controller.FactoryController
|
{
|
|
public FactoryController()
|
{
|
super();
|
}
|
|
|
public ControllerDevice addController(Device device)
|
{
|
ControllerDevice controller = null;
|
|
try
|
{
|
try
|
{
|
ControllerLigthStuds controllerLightStuds = (ControllerLigthStuds)Shared.getDeviceController(device.getIdentifier());
|
return(controllerLightStuds);
|
}
|
catch (Exception e)
|
{
|
}
|
|
|
LightStuds studs = (LightStuds)device;
|
|
if (studs.getDeviceInformation().BUSVAO != null)
|
{
|
controller = new ControllerLigthStuds_BUSVAO(studs);
|
Shared.lcontroller.add(controller);
|
controller.start();
|
}
|
|
}
|
catch (Exception e)
|
{
|
}
|
|
return controller;
|
}
|
|
|
|
|
public void removeController(ControllerDevice controller)
|
{
|
|
}
|
|
}
|