Ejemplo n.º 1
0
 public Boolean isItem(BooleanItem bi)
 {
     if (this.byteAdr == bi.byteAdr && this.bitAdr == bi.bitAdr)
     {
         return(true);
     }
     return(false);
 }
Ejemplo n.º 2
0
 public void calc(BooleanItem b)
 {
     if (b.isItem(bi))
     {
         Console.WriteLine("Quittieren! state=" + state + " bi=" + b.ToString());
         this.freigabe(b.getState());
     }
 }
Ejemplo n.º 3
0
 public virtual void add(BooleanItem bi)
 {
     //Console.WriteLine("Füge hinzu:" + bi.ToString());
     pool.Add(bi);
     if (listener != null)
     {
         listener.outputChanged(bi);
     }
 }
Ejemplo n.º 4
0
 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());
                 }
             }
         }
     }
 }