Class PolicingResource
- java.lang.Object
- 
- org.onosproject.net.behaviour.trafficcontrol.PolicingResource
 
- 
- All Implemented Interfaces:
- NetworkResource
 
 @Beta public final class PolicingResource extends java.lang.Object implements NetworkResource Abstraction which encapsulates policer data to be used as network resource.
- 
- 
Constructor SummaryConstructors Constructor Description PolicingResource(PolicerId pId, ConnectPoint cP)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectPointconnectPoint()Returns the connect point of this resource.booleanequals(java.lang.Object o)inthashCode()PolicerIdpolicerId()Return the policer id of this resource.java.lang.StringtoString()
 
- 
- 
- 
Constructor Detail- 
PolicingResourcepublic PolicingResource(PolicerId pId, ConnectPoint cP) 
 
- 
 - 
Method Detail- 
policerIdpublic PolicerId policerId() Return the policer id of this resource.- Returns:
- the policer id
 
 - 
connectPointpublic ConnectPoint connectPoint() Returns the connect point of this resource.- Returns:
- the connect point
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-