示例#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();
 }
示例#2
0
文件: TXOR.cs 项目: roluan/emulator
 /// <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)));
 }
示例#3
0
文件: TNOR.cs 项目: roluan/emulator
 /// <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)));
 }