Package org.onosproject.net.flow
Interface TrafficSelector
-
- All Known Implementing Classes:
DefaultTrafficSelector
public interface TrafficSelector
Abstraction of a slice of network traffic.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
TrafficSelector.Builder
Builder of traffic selector entities.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<Criterion>
criteria()
Returns selection criteria as an ordered list.Criterion
getCriterion(Criterion.Type type)
Returns the selection criterion for a particular type, if it exists in this traffic selector.
-
-
-
Method Detail
-
criteria
Set<Criterion> criteria()
Returns selection criteria as an ordered list.- Returns:
- list of criteria
-
getCriterion
Criterion getCriterion(Criterion.Type type)
Returns the selection criterion for a particular type, if it exists in this traffic selector.- Parameters:
type
- criterion type to look up- Returns:
- the criterion of the specified type if one exists, otherwise null
-
-