"0,UAV55,4, - [[Faa],[bb]]\n"+
"0,UAV3,SEED2, + [[aa,bb,cc,aa]]\n"+
"1,UAV55,4, + [[qq,aa,qq]]\n"+
"1,UAV3,SEED2, + [[aa,gg,aa]]"
)});
TracesForSeed tr4 = paper.collectionOfTraces.get("4");
{
Map<Integer,Set<List<Label>>> uav3Positive4 = constructCollectionOfTraces(tr4.tracesForUAVandFrame.get("UAV3"),true);
Map<Integer,Set<List<Label>>> uav3Negative4 = constructCollectionOfTraces(tr4.tracesForUAVandFrame.get("UAV3"),false);
Assert.assertTrue(TestFSMAlgo.buildSet(new String[][]{new String[]{"aa"}}, config).equals(
uav3Positive4.get(0)));
Assert.assertTrue(TestFSMAlgo.buildSet(new String[][]{new String[]{"aa"}}, config).equals(
uav3Positive4.get(1)));
Assert.assertTrue(TestFSMAlgo.buildSet(new String[][]{}, config).equals(
uav3Negative4.get(0)));
Assert.assertTrue(TestFSMAlgo.buildSet(new String[][]{}, config).equals(
uav3Negative4.get(1)));
}
{
Map<Integer,Set<List<Label>>> uav55Positive4 = constructCollectionOfTraces(tr4.tracesForUAVandFrame.get("UAV55"),true);
Map<Integer,Set<List<Label>>> uav55Negative4 = constructCollectionOfTraces(tr4.tracesForUAVandFrame.get("UAV55"),false);
Assert.assertTrue(TestFSMAlgo.buildSet(new String[][]{}, config).equals(
uav55Positive4.get(0)));
Assert.assertTrue(TestFSMAlgo.buildSet(new String[][]{new String[]{"qq","aa"}}, config).equals(
uav55Positive4.get(1)));
Assert.assertTrue(TestFSMAlgo.buildSet(new String[][]{new String[]{"Faa"}, new String[]{"bb"}}, config).equals(
uav55Negative4.get(0)));
Assert.assertTrue(TestFSMAlgo.buildSet(new String[][]{new String[]{"Faa"}, new String[]{"bb"}}, config).equals(
uav55Negative4.get(1)));
}
TracesForSeed tr2 = paper.collectionOfTraces.get("SEED2");
{
Map<Integer,Set<List<Label>>> uav3Positive2 = constructCollectionOfTraces(tr2.tracesForUAVandFrame.get("UAV3"),true);
Map<Integer,Set<List<Label>>> uav3Negative2 = constructCollectionOfTraces(tr2.tracesForUAVandFrame.get("UAV3"),false);
Assert.assertTrue(TestFSMAlgo.buildSet(new String[][]{new String[]{"aa","bb","cc"}}, config).equals(
uav3Positive2.get(0)));