Esempio n. 1
0
        public TruthTable GetErrorTruthTable(LogicSchemeManagerContext context, KeyValuePair <int, bool> error)
        {
            var truthTable = new TruthTable();            //new Dictionary<Dictionary<ElementPort, bool>, Dictionary<ElementPort, bool>>();

            GetAvailableInputCombinations().ForEach(availableInputCombination => {
                truthTable.Rows.Add(new TruthTableRow(availableInputCombination, GetSchemaOutputWithError(context, availableInputCombination, error)));
            });

            return(truthTable);
        }
Esempio n. 2
0
        public TruthTable GetTruthTable(LogicSchemeManagerContext context)
        {
            var truthTable = new TruthTable();            //new Dictionary<Dictionary<ElementPort, bool>, Dictionary<ElementPort, bool>>();

            GetAvailableInputCombinations().ForEach(availableInputCombination => {
                truthTable.Rows.Add(new TruthTableRow(availableInputCombination, GetSchemaOutput(context, availableInputCombination)));
            });

            return(truthTable);
        }
 public TruthTableView(TruthTable truthTable, bool skipInternalValues)
 {
     truthTable.Rows.ForEach(row => {
         Rows.Add(new TruthTableRowView(row, skipInternalValues));
     });
 }