static Map<Integer,Set<List<Label>>> constructCollectionOfTraces(final Map<Integer,PTASequenceEngine> frameToEngine,final boolean positive)
{
Map<Integer,Set<List<Label>>> frameToTraces = new TreeMap<Integer,Set<List<Label>>>();
for(Entry<Integer,PTASequenceEngine> entry:frameToEngine.entrySet())
{
final FilterPredicate existingPredicate = entry.getValue().getFSM_filterPredicate();
Set<List<Label>> tracesForFrame = new HashSet<List<Label>>();
tracesForFrame.addAll(entry.getValue().getData(new FilterPredicate()
{
@Override
public boolean shouldBeReturned(Object name) {
return existingPredicate.shouldBeReturned(name) == positive;
}
}));
frameToTraces.put(entry.getKey(),tracesForFrame);
}