Example #1
0
        public void AddMapping(SMTerminal modelTerminal, DfirTerminal dfirTerminal)
        {
            _terminalPairs.Add(new Tuple <SMTerminal, DfirTerminal>(modelTerminal, dfirTerminal));
            var contentOwner = modelTerminal.Owner as Content;

            if (contentOwner != null)
            {
                dfirTerminal.SetSourceModelIds(contentOwner, modelTerminal.TerminalIdentifier);
            }
        }
Example #2
0
 private void MapTerminalAndType(Terminal modelTerminal, NationalInstruments.Dfir.Terminal dfirTerminal)
 {
     _map.AddMapping(modelTerminal, dfirTerminal);
     dfirTerminal.SetSourceModelId(modelTerminal);
     dfirTerminal.DataType = modelTerminal.DataType.IsUnset() ? PFTypes.Void : modelTerminal.DataType;
 }
Example #3
0
 public void VisitTerminal(Terminal terminal)
 {
     throw new NotImplementedException();
 }
Example #4
0
 public bool ContainsTerminal(SMTerminal terminal)
 {
     return(_terminalPairs.Any(pair => pair.Item1 == terminal));
 }
Example #5
0
 public DfirTerminal GetDfirForTerminal(SMTerminal terminal)
 {
     return(_terminalPairs.FirstOrDefault(pair => pair.Item1 == terminal).Item2);
 }
Example #6
0
 public void AddMapping(SMTerminal modelTerminal, DfirTerminal dfirTerminal)
 {
     _terminalPairs.Add(new Tuple <SMTerminal, DfirTerminal>(modelTerminal, dfirTerminal));
     dfirTerminal.SetSourceModelId(modelTerminal);
 }