use of com.att.aro.core.packetanalysis.pojo.PacketAnalyzerResult in project VideoOptimzer by attdevsupport.
the class EnergyEfficiencySimulationLTE method refresh.
@Override
public void refresh(AROTraceData model) {
PacketAnalyzerResult analyzerResult = model.getAnalyzerResult();
String[] valueString = new String[1];
renderValue(analyzerResult, LabelKeys.rrc_continuousReceptionIdle, valueString);
renderValue(analyzerResult, LabelKeys.energy_shortDRX, valueString);
renderValue(analyzerResult, LabelKeys.energy_continuousReception, valueString);
renderValue(analyzerResult, LabelKeys.energy_idle, valueString);
renderValue(analyzerResult, LabelKeys.energy_promotionRatio, valueString);
renderValue(analyzerResult, LabelKeys.energy_continuousReceptionEnergy, valueString);
renderValue(analyzerResult, LabelKeys.energy_continuousReceptionTail, valueString);
renderValue(analyzerResult, LabelKeys.energy_promotionRatioTime, valueString);
renderValue(analyzerResult, LabelKeys.energy_shortDRXEnergy, valueString);
renderValue(analyzerResult, LabelKeys.energy_rrcTotal, valueString);
renderValue(analyzerResult, LabelKeys.energy_jpkb, valueString);
}
use of com.att.aro.core.packetanalysis.pojo.PacketAnalyzerResult in project VideoOptimzer by attdevsupport.
the class SimultnsConnImpl method runTest.
@Override
public AbstractBestPracticeResult runTest(PacketAnalyzerResult traceData) {
traceDataResult = traceData;
SimultnsConnectionResult result = new SimultnsConnectionResult();
simultnsConnectionEntryList = new ArrayList<MultipleConnectionsEntry>();
simultnsConnectionEntryMap = new TreeMap<Double, MultipleConnectionsEntry>();
populateSimultConnList();
for (Map.Entry<Double, MultipleConnectionsEntry> simultnsConnEntryMap : simultnsConnectionEntryMap.entrySet()) {
if (simultnsConnEntryMap.getValue() != null) {
simultnsConnectionEntryList.add(simultnsConnEntryMap.getValue());
}
}
result.setResults(simultnsConnectionEntryList);
String text = "";
if (simultnsConnectionEntryList.isEmpty()) {
result.setResultType(BPResultType.PASS);
text = textResultPass;
result.setResultText(text);
result.setResultExcelText(BPResultType.PASS.getDescription());
} else {
result.setResultType(BPResultType.FAIL);
result.setResultText(textResults);
// TODO: Validate the conditional statement
result.setResultExcelText(MessageFormat.format(textExcelResults, BPResultType.FAIL.getDescription(), simultnsConnectionEntryList.parallelStream().mapToInt(x -> x.getConcurrentSessions()).sum(), (simultnsConnectionEntryList.size() > 1 ? "s" : "")));
}
result.setAboutText(aboutText);
result.setDetailTitle(detailTitle);
result.setLearnMoreUrl(learnMoreUrl);
result.setOverviewTitle(overviewTitle);
return result;
}
use of com.att.aro.core.packetanalysis.pojo.PacketAnalyzerResult in project VideoOptimzer by attdevsupport.
the class ForwardSecrecyImplTest method setUp.
@Before
public void setUp() throws Exception {
bestPractice = (ForwardSecrecyImpl) context.getBean("forwardSecrecy");
packetAnalyzerResult = new PacketAnalyzerResult();
}
use of com.att.aro.core.packetanalysis.pojo.PacketAnalyzerResult in project VideoOptimzer by attdevsupport.
the class HttpsUsageImplTest method testNonSSLSessionHasPayload.
@Test
public void testNonSSLSessionHasPayload() {
PacketAnalyzerResult pktAnalyzerResult = sessionPacketsPayloadTestSetup(1, 0, 1, 1);
httpsUsageResult = (HttpsUsageResult) httpsUsageImpl.runTest(pktAnalyzerResult);
httpsUsageEntries = httpsUsageResult.getResults();
assertEquals(2, httpsUsageEntries.size());
}
use of com.att.aro.core.packetanalysis.pojo.PacketAnalyzerResult in project VideoOptimzer by attdevsupport.
the class HttpsUsageImplTest method testNonSSLSessionNoPayload.
@Test
public void testNonSSLSessionNoPayload() {
PacketAnalyzerResult pktAnalyzerResult = sessionPacketsPayloadTestSetup(0, 0, 0, 0);
httpsUsageResult = (HttpsUsageResult) httpsUsageImpl.runTest(pktAnalyzerResult);
httpsUsageEntries = httpsUsageResult.getResults();
assertEquals(0, httpsUsageEntries.size());
}
Aggregations