return information about the plotted sequences
this information can be used for tests
This commit is contained in:
@@ -3,15 +3,14 @@ package org.lucares.pdbui.domain;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class PlotResponse {
|
||||
private List<String> imageUrls = new ArrayList<>();
|
||||
private Map<String, Integer> dataSeries;
|
||||
|
||||
public PlotResponse() {
|
||||
super();
|
||||
}
|
||||
|
||||
public PlotResponse(final String... imageUrls) {
|
||||
public PlotResponse(final Map<String, Integer> dataSeries, final String... imageUrls) {
|
||||
this.dataSeries = dataSeries;
|
||||
this.imageUrls.addAll(Arrays.asList(imageUrls));
|
||||
}
|
||||
|
||||
@@ -23,9 +22,17 @@ public class PlotResponse {
|
||||
this.imageUrls = imageUrls;
|
||||
}
|
||||
|
||||
public Map<String, Integer> getDataSeries() {
|
||||
return dataSeries;
|
||||
}
|
||||
|
||||
public void setDataSeries(final Map<String, Integer> dataSeries) {
|
||||
this.dataSeries = dataSeries;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(imageUrls);
|
||||
return String.valueOf(imageUrls) + " " + dataSeries;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user