public Boolean isItem(BooleanItem bi) { if (this.byteAdr == bi.byteAdr && this.bitAdr == bi.bitAdr) { return(true); } return(false); }
public void calc(BooleanItem b) { if (b.isItem(bi)) { Console.WriteLine("Quittieren! state=" + state + " bi=" + b.ToString()); this.freigabe(b.getState()); } }
public virtual void add(BooleanItem bi) { //Console.WriteLine("Füge hinzu:" + bi.ToString()); pool.Add(bi); if (listener != null) { listener.outputChanged(bi); } }
public void calcLeuchtmelderState(BooleanItem bi) { if (this.type == Bedienelement.Leuchtmelder || this.type == Bedienelement.LeuchtTaster) { if (bi.isItem(this.getLeuchtmelderItem())) { if (this.getLeuchtmelderAdr().StartsWith("E") || this.getLeuchtmelderAdr().StartsWith("e")) { //Console.WriteLine("akt. State=" + this.getLeuchtmelderState() + " Item state=" + bi.getState()); if (this.getLeuchtmelderState() == !bi.getState()) { Console.WriteLine("Calc Leuchtmelder State:" + bi.ToString() + " aktueller Element state=" + this.getLeuchtmelderState()); this.setLeuchtmelderState(bi.getState()); } } } } }