예제 #1
0
        private void VisitWire(NationalInstruments.SourceModel.Wire wire)
        {
            var  dfirWire            = (NationalInstruments.Dfir.Wire)_map.GetDfirForModel(wire);
            bool isFirstVariableWire = dfirWire.GetIsFirstVariableWire();

            wire.SetIsFirstVariableWire(isFirstVariableWire);

            NationalInstruments.Dfir.Terminal dfirSourceTerminal;
            if (dfirWire.TryGetSourceTerminal(out dfirSourceTerminal))
            {
                wire.SetWireVariable(dfirSourceTerminal.GetFacadeVariable());
            }

            if (!isFirstVariableWire)
            {
                wire.SetWireBeginsMutableVariable(false);
            }
        }
예제 #2
0
 public void VisitWire(Wire wire)
 {
     _modelWires.Add(wire);
 }