Class DefaultFilteringObjective

    • Method Detail

      • key

        public Criterion key()
        Description copied from interface: FilteringObjective
        Obtain the key for this filter. The filter may or may not require a key.
        Specified by:
        key in interface FilteringObjective
        Returns:
        a criterion, which could be null if no key was provided.
      • conditions

        public java.util.Collection<Criterion> conditions()
        Description copied from interface: FilteringObjective
        The set of conditions the filter must provision at the device.
        Specified by:
        conditions in interface FilteringObjective
        Returns:
        a collection of criteria
      • id

        public int id()
        Description copied from interface: Objective
        An identifier for this objective.
        Specified by:
        id in interface Objective
        Returns:
        an integer
      • meta

        public TrafficTreatment meta()
        Description copied from interface: FilteringObjective
        Auxiliary optional information provided to the device driver. Typically conveys information about changes (treatments) to packets that are permitted into the pipeline by the PERMIT filtering condition.
        Specified by:
        meta in interface FilteringObjective
        Returns:
        a treatment on the packets that make it through the PERMIT filters. Value may be null if no meta information is provided.
      • priority

        public int priority()
        Description copied from interface: Objective
        The priority for this objective.
        Specified by:
        priority in interface Objective
        Returns:
        an integer
      • appId

        public ApplicationId appId()
        Description copied from interface: Objective
        The application which applied this objective.
        Specified by:
        appId in interface Objective
        Returns:
        an application id
      • timeout

        public int timeout()
        Description copied from interface: Objective
        The timeout for this objective.
        Specified by:
        timeout in interface Objective
        Returns:
        an integer
      • permanent

        public boolean permanent()
        Description copied from interface: Objective
        Whether this objective is permanent.
        Specified by:
        permanent in interface Objective
        Returns:
        a boolean
      • context

        public java.util.Optional<ObjectiveContext> context()
        Description copied from interface: Objective
        Obtains an optional context.
        Specified by:
        context in interface Objective
        Returns:
        optional; which will be empty if there is no context. Otherwise it will return the context.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object