Search in sources :

Example 1 with ValueTableObserver

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);
}
Also used : Signal(de.neemann.digital.core.Signal) ValueTableObserver(de.neemann.digital.gui.components.data.ValueTableObserver)

Aggregations

Signal (de.neemann.digital.core.Signal)1 ValueTableObserver (de.neemann.digital.gui.components.data.ValueTableObserver)1