use of de.neemann.digital.core.Signal in project Digital by hneemann.
the class DataShape method registerModel.
@Override
public void registerModel(ModelCreator modelCreator, Model model, ModelEntry element) {
ArrayList<Signal> signals = model.getSignalsCopy();
new OrderMerger<String, Signal>(modelCreator.getCircuit().getMeasurementOrdering()) {
@Override
public boolean equals(Signal a, String b) {
return a.getName().equals(b);
}
}.order(signals);
ValueTableObserver valueTableObserver = new ValueTableObserver(microStep, signals, maxSize);
logDataModel = valueTableObserver.getLogData();
model.addObserver(valueTableObserver);
}
use of de.neemann.digital.core.Signal in project Digital by hneemann.
the class ProbeTest method testProbeNesting.
public void testProbeNesting() throws Exception {
Model m = new ToBreakRunner("dig/probe/probeNest.dig").getModel();
ArrayList<Signal> signals = m.getSignals();
assertEquals(6, signals.size());
assertTrue(signals.contains(new Signal("M-Probe1", null)));
assertTrue(signals.contains(new Signal("M-Nest-Probe1", null)));
assertTrue(signals.contains(new Signal("M-Nest-Probe2", null)));
}
use of de.neemann.digital.core.Signal in project Digital by hneemann.
the class ProbeTest method testProbe.
public void testProbe() throws Exception {
Model m = new ToBreakRunner("dig/probe/probe.dig").getModel();
ArrayList<Signal> signals = m.getSignals();
assertEquals(5, signals.size());
assertTrue(signals.contains(new Signal("M-Probe1", null)));
assertTrue(signals.contains(new Signal("M-Probe2", null)));
}
Aggregations