use of de.neemann.digital.gui.components.data.ValueTableObserver 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);
}
Aggregations