Package org.onosproject.net
Class DataPlaneEntity
- java.lang.Object
-
- org.onosproject.net.DataPlaneEntity
-
public class DataPlaneEntity extends java.lang.ObjectGeneric abstraction to hold dataplane entities.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDataPlaneEntity.TypeTypes of entity.
-
Constructor Summary
Constructors Constructor Description DataPlaneEntity(FlowEntry flow)Creates a dataplane entity from a flow entry.DataPlaneEntity(Group group)Creates a dataplane entity from a group entry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)FlowEntrygetFlowEntry()Returns the flow entry.GroupgetGroupEntry()Returns the group entry.DataPlaneEntity.TypegetType()Returns the type of the entry.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
DataPlaneEntity
public DataPlaneEntity(FlowEntry flow)
Creates a dataplane entity from a flow entry.- Parameters:
flow- the inner flow entry
-
DataPlaneEntity
public DataPlaneEntity(Group group)
Creates a dataplane entity from a group entry.- Parameters:
group- the inner group entry
-
-
Method Detail
-
getFlowEntry
public FlowEntry getFlowEntry()
Returns the flow entry.- Returns:
- the flow entry
-
getGroupEntry
public Group getGroupEntry()
Returns the group entry.- Returns:
- the group entry
-
getType
public DataPlaneEntity.Type getType()
Returns the type of the entry.- Returns:
- the type
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-