Package de.fhkn.in.uce.connectivitymanager.selector.decisiontree

Examples of de.fhkn.in.uce.connectivitymanager.selector.decisiontree.NATTraversalRule


        final List<NATTraversalTechnique> natTravListDVCR = new ArrayList<NATTraversalTechnique>();
        natTravListDVCR.add(new NATTraversalTechniqueMock("DirectConnection", 3, true));
        natTravListDVCR.add(new NATTraversalTechniqueMock("Reversal", 3, true));
        final Set<NATTraversalRule> expectedResult = new HashSet<NATTraversalRule>();

        expectedResult.add(new NATTraversalRule(new NATSituation(NATFeatureRealization.NOT_REALIZED,
                NATFeatureRealization.NOT_REALIZED, NATFeatureRealization.ENDPOINT_INDEPENDENT,
                NATFeatureRealization.ENDPOINT_INDEPENDENT), natTravListDVCR));
        expectedResult.add(new NATTraversalRule(new NATSituation(NATFeatureRealization.ENDPOINT_INDEPENDENT,
                NATFeatureRealization.ENDPOINT_INDEPENDENT, NATFeatureRealization.ENDPOINT_INDEPENDENT,
                NATFeatureRealization.ENDPOINT_INDEPENDENT), natTravListDVCR));
        expectedResult.add(new NATTraversalRule(new NATSituation(NATFeatureRealization.ENDPOINT_INDEPENDENT,
                NATFeatureRealization.ADDRESS_DEPENDENT, NATFeatureRealization.ENDPOINT_INDEPENDENT,
                NATFeatureRealization.ENDPOINT_INDEPENDENT), natTravListDV));
        expectedResult.add(new NATTraversalRule(new NATSituation(NATFeatureRealization.ENDPOINT_INDEPENDENT,
                NATFeatureRealization.ADDRESS_AND_PORT_DEPENDENT, NATFeatureRealization.ENDPOINT_INDEPENDENT,
                NATFeatureRealization.ENDPOINT_INDEPENDENT), natTravListDV));
        expectedResult.add(new NATTraversalRule(new NATSituation(NATFeatureRealization.DONT_CARE,
                NATFeatureRealization.DONT_CARE, NATFeatureRealization.ENDPOINT_INDEPENDENT,
                NATFeatureRealization.ENDPOINT_INDEPENDENT), natTravListDV));
        expectedResult.add(new NATTraversalRule(new NATSituation(NATFeatureRealization.ENDPOINT_INDEPENDENT,
                NATFeatureRealization.ENDPOINT_INDEPENDENT, NATFeatureRealization.NOT_REALIZED,
                NATFeatureRealization.NOT_REALIZED), natTravListDVCR));
        expectedResult.add(new NATTraversalRule(new NATSituation(NATFeatureRealization.ENDPOINT_INDEPENDENT,
                NATFeatureRealization.ADDRESS_DEPENDENT, NATFeatureRealization.NOT_REALIZED,
                NATFeatureRealization.NOT_REALIZED), natTravListDV));
        expectedResult.add(new NATTraversalRule(new NATSituation(NATFeatureRealization.ENDPOINT_INDEPENDENT,
                NATFeatureRealization.ADDRESS_AND_PORT_DEPENDENT, NATFeatureRealization.NOT_REALIZED,
                NATFeatureRealization.NOT_REALIZED), natTravListDV));
        expectedResult.add(new NATTraversalRule(new NATSituation(NATFeatureRealization.CONNECTION_DEPENDENT,
                NATFeatureRealization.CONNECTION_DEPENDENT, NATFeatureRealization.NOT_REALIZED,
                NATFeatureRealization.NOT_REALIZED), natTravListDV));

        expectedResult.add(new NATTraversalRule(new NATSituation(NATFeatureRealization.ENDPOINT_INDEPENDENT,
                NATFeatureRealization.ENDPOINT_INDEPENDENT, NATFeatureRealization.ENDPOINT_INDEPENDENT,
                NATFeatureRealization.ADDRESS_DEPENDENT), natTravListCR));
        expectedResult.add(new NATTraversalRule(new NATSituation(NATFeatureRealization.ENDPOINT_INDEPENDENT,
                NATFeatureRealization.ENDPOINT_INDEPENDENT, NATFeatureRealization.ENDPOINT_INDEPENDENT,
                NATFeatureRealization.ADDRESS_AND_PORT_DEPENDENT), natTravListCR));
        expectedResult.add(new NATTraversalRule(new NATSituation(NATFeatureRealization.ENDPOINT_INDEPENDENT,
                NATFeatureRealization.ENDPOINT_INDEPENDENT, NATFeatureRealization.CONNECTION_DEPENDENT,
                NATFeatureRealization.CONNECTION_DEPENDENT), natTravListCR));
        expectedResult.add(new NATTraversalRule(new NATSituation(NATFeatureRealization.NOT_REALIZED,
                NATFeatureRealization.NOT_REALIZED, NATFeatureRealization.ENDPOINT_INDEPENDENT,
                NATFeatureRealization.ADDRESS_DEPENDENT), natTravListCR));
        expectedResult.add(new NATTraversalRule(new NATSituation(NATFeatureRealization.NOT_REALIZED,
                NATFeatureRealization.NOT_REALIZED, NATFeatureRealization.ENDPOINT_INDEPENDENT,
                NATFeatureRealization.ADDRESS_AND_PORT_DEPENDENT), natTravListCR));
        expectedResult.add(new NATTraversalRule(new NATSituation(NATFeatureRealization.NOT_REALIZED,
                NATFeatureRealization.NOT_REALIZED, NATFeatureRealization.CONNECTION_DEPENDENT,
                NATFeatureRealization.CONNECTION_DEPENDENT), natTravListCR));

        expectedResult.add(new NATTraversalRule(new NATSituation(NATFeatureRealization.ENDPOINT_INDEPENDENT,
                NATFeatureRealization.ENDPOINT_INDEPENDENT, NATFeatureRealization.DONT_CARE,
                NATFeatureRealization.DONT_CARE), natTravListCR));

        expectedResult.add(new NATTraversalRule(new NATSituation(NATFeatureRealization.NOT_REALIZED,
                NATFeatureRealization.NOT_REALIZED, NATFeatureRealization.DONT_CARE, NATFeatureRealization.DONT_CARE),
                natTravListCR));

        Set<NATTraversalRule> actualResult = this.registry.getRulesForDecisionTreeLearning();
View Full Code Here


        final List<NATTraversalTechnique> supportedTraversalTechniques = this.getAllSupportedNATTraversalTechniques();
        final Set<NATSituation> occuringNatSituations = this.getOccuringNATSituations(supportedTraversalTechniques);
        for (final NATSituation natSituation : occuringNatSituations) {
            final List<NATTraversalTechnique> appropriateNATTraversalTechniques = this
                    .getAppropriateNATTraversalTechniquesForNATSituation(natSituation);
            result.add(new NATTraversalRule(natSituation, appropriateNATTraversalTechniques));
        }
        return Collections.unmodifiableSet(result);
    }
View Full Code Here

TOP

Related Classes of de.fhkn.in.uce.connectivitymanager.selector.decisiontree.NATTraversalRule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.