@@ -0,0 +1,1914 @@
+package com.cisco.trex.stl.gui.models;%0A%0Aimport javafx.beans.property.*;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0Aimport java.util.Objects;%0A%0Aimport static java.util.stream.Collectors.joining;%0Aimport static java.util.stream.Collectors.toList;%0A%0Apublic class UtilizationCPUModel %7B%0A    private IntegerProperty id = new SimpleIntegerProperty();%0A    private StringProperty thread = new SimpleStringProperty();%0A    %0A    // Active ports per core. By default 2 ports per core.%0A    private StringProperty activePorts = new SimpleStringProperty();%0A    private IntegerProperty avg = new SimpleIntegerProperty();%0A    private List%3CIntegerProperty%3E history = new ArrayList%3C%3E(14);%0A%0A    public UtilizationCPUModel(int coreIdx, List%3CInteger%3E activePorts, int avg, List%3CInteger%3E history) %7B%0A        this.id.set(coreIdx);%0A        this.avg.set(avg);%0A        String activePortsStr = activePorts.stream().filter(port -%3E port %3E= 0).map(Objects::toString).collect(joining(%22, %22));%0A        activePortsStr = activePortsStr.isEmpty() ? %22IDLE%22 : activePortsStr;%0A        this.activePorts.set(activePortsStr);%0A        this.thread.set(coreIdx + %22 (%22+activePortsStr+%22)%22);%0A        this.history.addAll(history.stream().map(SimpleIntegerProperty::new).collect(toList()));%0A    %7D%0A%0A    public int getId() %7B%0A        return id.get();%0A    %7D%0A%0A    public IntegerProperty idProperty() %7B%0A        return id;%0A    %7D%0A%0A    public StringProperty threadProperty() %7B%0A        return thread;%0A    %7D%0A%0A    public String getActivePorts() %7B%0A        return activePorts.get();%0A    %7D%0A%0A    public StringProperty activePortsProperty() %7B%0A        return activePorts;%0A    %7D%0A%0A    public double getAvg() %7B%0A        return avg.get();%0A    %7D%0A%0A    public IntegerProperty avgProperty() %7B%0A        return avg;%0A    %7D%0A%0A    public List%3CIntegerProperty%3E getHistory() %7B%0A        return history;%0A    %7D%0A    public IntegerProperty getHistory(int idx) %7B%0A        return history.get(idx);%0A    %7D%0A%7D%0A

Add UtilizationCPUModel.