@Test public void testGetRepresentativeFlow_withoutIpSpaces() { HeaderSpaceToFlow headerSpaceToFlow = new HeaderSpaceToFlow(ImmutableMap.of(), FlowPreference.APPLICATION); Optional<Builder> flowBuilder = headerSpaceToFlow.getRepresentativeFlow( HeaderSpace.builder().setSrcIps(Ip.parse("1.2.3.4").toIpSpace()).build()); assertTrue(flowBuilder.isPresent()); assertThat(flowBuilder.get().getSrcIp(), equalTo(Ip.parse("1.2.3.4"))); assertThat(flowBuilder.get().getPacketLength(), equalTo(DEFAULT_PACKET_LENGTH)); }
public Optional<Flow.Builder> getRepresentativeFlow(HeaderSpace hs) { return BDD_PACKET.getFlow(_headerSpaceToBDD.toBDD(hs), _preference); }
HeaderSpaceToFlow { public Optional<Flow.Builder> getRepresentativeFlow(HeaderSpace hs) { return BDD_PACKET.getFlow(_headerSpaceToBDD.toBDD(hs), _preference); } }
HeaderSpaceToFlow { public Optional<Flow.Builder> getRepresentativeFlow(HeaderSpace hs) { return BDD_PACKET.getFlow(_headerSpaceToBDD.toBDD(hs), _preference); } HeaderSpaceToFlow(Map<String, IpSpace> ipSpaces, FlowPreference preference); }
HeaderSpaceToFlow { public Optional<Flow.Builder> getRepresentativeFlow(HeaderSpace hs) { return BDD_PACKET.getFlow(_headerSpaceToBDD.toBDD(hs), _preference); } HeaderSpaceToFlow(Map<String, IpSpace> ipSpaces, FlowPreference preference); Optional<Flow.Builder> getRepresentativeFlow(HeaderSpace hs); }
HeaderSpaceToFlow { public Optional<Flow.Builder> getRepresentativeFlow(HeaderSpace hs) { return BDD_PACKET.getFlow(_headerSpaceToBDD.toBDD(hs), _preference); } HeaderSpaceToFlow(Map<String, IpSpace> ipSpaces, FlowPreference preference); Optional<Flow.Builder> getRepresentativeFlow(HeaderSpace hs);  }