Exemplo n.º 1
0
 public HMIViewModel()
 {
     Vanne_Pushed = new Command(Vanne_pushed);
     Messaging.Messenger.Default.Register <object>(this, receivedMessage);
     for (int n = 0; n < 6; n++)
     {
         TOR.Add(new VanneTOR());
     }
     REG.Add(new VanneREG());
     //Excel();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Represents Ternary XOR Gate
 /// </summary>
 /// <param name="inputA">The first input <see cref="Trit"/></param>
 /// <param name="inputB">The second input <see cref="Trit"/></param>
 /// <returns>Ternary XOR <see cref="Trit"/> output</returns>
 public static Trit Output(Trit inputA, Trit inputB)
 {
     return(TAND.Output(TNAND.Output(inputA, inputB), TOR.Output(inputA, inputB)));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Represents a Ternary NOR gate
 /// </summary>
 /// <param name="inputA">The first input <see cref="Trit"/></param>
 /// <param name="inputB">The second input <see cref="Trit"/></param>
 /// <returns>TNOR <see cref="Trit"/> output</returns>
 public static Trit Output(Trit inputA, Trit inputB)
 {
     return(TNOT.Output(TOR.Output(inputA, inputB)));
 }