package art.servers.rtzserver;
|
|
import art.library.model.devices.Device;
|
import art.library.model.devices.colors.controller.RTZ32.RTZ32_Controller;
|
import art.library.model.devices.colors.controller.RTZ32.RTZ32_ControllerInformation;
|
import art.servers.configuration.Configuration;
|
|
|
|
public class Model extends art.servers.Model
|
{
|
|
public Model(Configuration configuration) throws Exception
|
{
|
super(configuration, "controllers", RTZ32_Controller.class.getName(), RTZ32_ControllerInformation.class.getName());
|
}
|
|
|
|
public RTZ32_Controller getDevice(int number)
|
{
|
for (Device device : Shared.model.getDevices())
|
{
|
if (device.getDeviceInformation().number == number)
|
{
|
return (RTZ32_Controller)device;
|
}
|
}
|
|
return null;
|
}
|
|
|
|
}
|