@Override public void deactivate() throws InterruptedException, CouldNotPerformException { stop(); super.deactivate(); }
@Override public UnitConfig applyConfigUpdate(final UnitConfig config) throws CouldNotPerformException, InterruptedException { updateNeutralWhiteValue(config); return super.applyConfigUpdate(config); }
@Override public void shutdown() { if (this.unitRemote != null) { unitRemote.removeDataObserver(dataObserver); unitRemote.removeConnectionStateObserver(connectionStateObserver); } }
public UnitControllerRegistryImpl(final HashMap<String, UnitController<D, DB>> entryMap) throws InstantiationException { super(entryMap); this.scopeControllerMap = new HashMap<>(); addObserver(new UnitControllerSynchronizer()); }
public static void verifyUnit(final Unit<?> unit) throws VerificationFailedException { verifyUnitConfig(unit); verifyUnitType(unit); }
@Override public void init(final UnitConfig config) throws InitializationException, InterruptedException { super.init(config); }
@Override public void init(UnitConfigType.UnitConfig config) throws InitializationException, InterruptedException { super.init(config); try { this.powerService = getServiceFactory().newPowerService(this); this.colorService = getServiceFactory().newColorService(this); this.brightnessService = getServiceFactory().newBrightnessService(this); } catch (CouldNotPerformException ex) { throw new InitializationException(this, ex); } }
@Override public void init(UnitConfigType.UnitConfig config) throws InitializationException, InterruptedException { super.init(config); try { this.powerService = getServiceFactory().newPowerService(this); this.brightnessService = getServiceFactory().newBrightnessService(this); } catch (CouldNotPerformException ex) { throw new InitializationException(this, ex); } }
@Override public void init(UnitConfigType.UnitConfig config) throws InitializationException, InterruptedException { super.init(config); try { this.powerService = getServiceFactory().newPowerService(this); } catch (CouldNotPerformException ex) { throw new InitializationException(this, ex); } }
@Override public void init(UnitConfigType.UnitConfig config) throws InitializationException, InterruptedException { super.init(config); try { this.powerStateService = getServiceFactory().newPowerService(this); this.standbyStateService = getServiceFactory().newStandbyService(this); } catch (CouldNotPerformException ex) { throw new InitializationException(this, ex); } }
@Override public void init(UnitConfigType.UnitConfig config) throws InitializationException, InterruptedException { super.init(config); try { this.powerService = getServiceFactory().newPowerService(this); } catch (CouldNotPerformException ex) { throw new InitializationException(this, ex); } }
@Override public void init(UnitConfigType.UnitConfig config) throws InitializationException, InterruptedException { super.init(config); try { this.powerStateService = getServiceFactory().newPowerService(this); this.brightnessStateService = getServiceFactory().newBrightnessService(this); } catch (CouldNotPerformException ex) { throw new InitializationException(this, ex); } }
@Override public void init(final UnitConfig config) throws InitializationException, InterruptedException { super.init(config); try { blindStateService = getServiceFactory().newShutterService(this); } catch (CouldNotPerformException ex) { throw new InitializationException(this, ex); } }
/** * Gets the Transform3D of the transformation from root to unit coordinate system. * * @return transform relative to root location * * @throws NotAvailableException is thrown if the transformation is not available. * @throws InterruptedException is thrown if the thread was externally interrupted. * @deprecated please use {@code getRootToUnitTransform3D()} instead. */ default Transform3D getTransform3D() throws NotAvailableException, InterruptedException { return getRootToUnitTransform3D(); }
/** * Add an observer which is only notified if the value for the current * value of the given service type changes. * * @param serviceType The service type on which the observer is added. * @param observer The observer which is added. */ @Override default void addServiceStateObserver(final ServiceType serviceType, final Observer observer) { addServiceStateObserver(ServiceTempus.CURRENT, serviceType, observer); }
/** * Remove an observer which is only notified if the value for the current * value of the given service type changes. * * @param serviceType The service type on which the observer is removed. * @param observer The observer which is removed. */ @Override default void removeServiceStateObserver(final ServiceType serviceType, final Observer observer) { removeServiceStateObserver(ServiceTempus.CURRENT, serviceType, observer); }
@Override public Future<ActionFuture> setNeutralWhite() throws CouldNotPerformException { return setColor(neutralWhite); }
public void updateToUnitTemplateChange(UnitTemplate unitTemplate) { this.unitTemplate = unitTemplate; updateFieldsToKeep(); }
public ActivationState getActivationState() throws NotAvailableException { return (ActivationState) getDataField(FIELD_ACTIVATION_STATE); }
public UnitControllerRegistryImpl() throws InstantiationException { this.scopeControllerMap = new HashMap<>(); addObserver(new UnitControllerSynchronizer()); }