public override void RemoveChannel(IndividualControl channel) { base.RemoveChannel(channel); var inputCard = cards[channel.Group] as GenericAnalogInputCard; inputCard.SetupChannelCommunication(channel.Individual); }
public virtual void AddChannel(IndividualControl channel, string channelName, int lowPassFilterFactor) { AddChannel(channel, channelName); var inputCard = cards[channel.Group] as GenericAnalogInputCard; var inputChannel = inputCard.channels[channel.Individual] as GenericAnalogInputChannel; inputChannel.lowPassFilterFactor = lowPassFilterFactor; inputCard.SetupChannelCommunication(channel.Individual); }
protected static void AddLight( string name, IndividualControl powerOutlet, LightingState[] lightingStates, bool highTempLockout) { var fixtureSettings = new LightingFixtureSettings(); fixtureSettings.name = name; fixtureSettings.channel = powerOutlet; fixtureSettings.lightingStates = lightingStates; fixtureSettings.highTempLockout = highTempLockout; fixtures[name] = new LightingFixture(fixtureSettings); }
public LightingFixtureDimming(LightingFixtureSettings settings) : base(settings) { currentDimmingLevel = 0.0f; autoDimmingLevel = 0.0f; requestedDimmingLevel = 0.0f; rateOfChangeLimiter = new RateOfChangeLimiter(1.0f); dimmingChannel = settings.dimmingChannel; dimmingMode = Mode.Auto; var dimmingSettings = new GenericDeviceSettings(); dimmingSettings.name = name + " Dimming Output"; dimmingSettings.channel = dimmingChannel; dimmingEquipment = new DimmingEquipment(dimmingSettings, this); Driver.AnalogOutput.AddOutputChannel(dimmingChannel, name, dimmingEquipment.key); }
/**************************************************************************************************************/ /* Channels */ /**************************************************************************************************************/ public virtual void AddChannel(IndividualControl channel, string channelName) { AddChannel(channel.Group, channel.Individual, channelName); }
public bool AquaPicBusCommunicationOk(IndividualControl ic) { return(AquaPicBusCommunicationOk(ic.Group)); }
public void Subscribe(IndividualControl outlet) { outletSubscriber.Subscribe(Driver.Power.GetChannelEventPublisherKey(outlet)); }
/**************************************************************************************************************/ /* Channel Mode Getters */ /**************************************************************************************************************/ public virtual Mode GetChannelMode(string channelName) { IndividualControl channel = GetChannelIndividualControl(channelName); return(GetChannelMode(channel.Group, channel.Individual)); }
/**************************************************************************************************************/ /* Channel Name Getters */ /**************************************************************************************************************/ public virtual string GetChannelName(IndividualControl channel) { return(GetChannelName(channel.Group, channel.Individual)); }
/**************************************************************************************************************/ /* Channel Value Setters */ /**************************************************************************************************************/ public virtual void SetChannelValue(string channelName, ValueType value) { IndividualControl channel = GetChannelIndividualControl(channelName); SetChannelValue(channel.Group, channel.Individual, value); }
/**************************************************************************************************************/ /* Channel Value Getters */ /**************************************************************************************************************/ public virtual dynamic GetChannelValue(string channelName) { IndividualControl channel = GetChannelIndividualControl(channelName); return(GetChannelValue(channel.Group, channel.Individual)); }
public AnalogType GetChannelType(IndividualControl channel) { return(GetChannelType(channel.Group, channel.Individual)); }
public AnalogType GetChannelType(string channelName) { IndividualControl channel = GetChannelIndividualControl(channelName); return(GetChannelType(channel.Group, channel.Individual)); }
public bool GetOutletFallback(IndividualControl outlet) { return(GetOutletFallback(outlet.Group, outlet.Individual)); }
public void AddOutlet(IndividualControl outlet, string name, bool fallback, Guid subscriptionKey) { AddOutlet(outlet.Group, outlet.Individual, name, fallback, subscriptionKey); }
public sealed override void AddOutputChannel(IndividualControl channel, string channelName, Guid subscriptionKey) => throw new NotSupportedException();
public void SetOutletFallback(IndividualControl outlet, bool fallback) { SetOutletFallback(outlet.Group, outlet.Individual, fallback); }
public virtual void RemoveChannel(string channelName) { IndividualControl channel = GetChannelIndividualControl(channelName); RemoveChannel(channel.Group, channel.Individual); }
public virtual void RemoveChannel(IndividualControl channel) { RemoveChannel(channel.Group, channel.Individual); }
public void SetChannelType(string channelName, AnalogType type) { IndividualControl channel = GetChannelIndividualControl(channelName); SetChannelType(channel.Group, channel.Individual, type); }
public virtual dynamic GetChannelValue(IndividualControl channel) { return(GetChannelValue(channel.Group, channel.Individual)); }
public void SetChannelType(IndividualControl channel, AnalogType type) { SetChannelType(channel.Group, channel.Individual, type); }
public virtual void SetChannelValue(IndividualControl channel, ValueType value) { SetChannelValue(channel.Group, channel.Individual, value); }
public virtual void SetChannelMode(IndividualControl channel, Mode mode) { SetChannelMode(channel.Group, channel.Individual, mode); }
/**************************************************************************************************************/ /* Channel Name Setters */ /**************************************************************************************************************/ public virtual void SetChannelName(IndividualControl channel, string name) { SetChannelName(channel.Group, channel.Individual, name); }
public Guid GetSubscriptionKey(IndividualControl channel) { return(GetSubscriptionKey(channel.Group, channel.Individual)); }
public virtual Mode GetChannelMode(IndividualControl channel) { return(GetChannelMode(channel.Group, channel.Individual)); }
public int GetChannelLowPassFilterFactor(IndividualControl channel) { return(GetChannelLowPassFilterFactor(channel.Group, channel.Individual)); }
public virtual Guid GetChannelEventPublisherKey(IndividualControl channel) { return(GetChannelEventPublisherKey(channel.Group, channel.Individual)); }
public void UnsubscribeChannel(IndividualControl channel) { UnsubscribeChannel(channel.Group, channel.Individual); }